protected virtual void DoGet(ContainerGet get)
 {
     if (Level >= get.Amount)
     {
         Level -= get.Amount;
         get.Succeed();
     }
 }
Exemple #2
0
 protected virtual void DoGet(ContainerGet get)
 {
     if (Level >= get.Amount)
     {
         GetWaitingTime?.Add(Environment.ToDouble(Environment.Now - get.Time));
         Level -= get.Amount;
         get.Succeed();
     }
 }
 protected virtual void DoGet(ContainerGet get)
 {
     if (Level >= get.Amount) {
     Level -= get.Amount;
     get.Succeed();
       }
 }