Пример #1
0
 public override bool MeetDemand(ItemIdCount supplyItem)
 {
     if (CSUtils.CanAddToStorage(supplyItem.protoId, supplyItem.count, Assembly))
     {
         CSUtils.AddToStorage(supplyItem.protoId, supplyItem.count, Assembly);
         return(true);
     }
     else
     {
         CSAutocycleMgr.Instance.ShowTips(ETipType.storage_full);
         return(false);
     }
 }
Пример #2
0
 public override bool MeetDemand(int protoId, int count)
 {
     if (CSUtils.CanAddToStorage(protoId, count, Assembly))
     {
         CSUtils.AddToStorage(protoId, count, Assembly);
         return(true);
     }
     else
     {
         CSAutocycleMgr.Instance.ShowTips(ETipType.storage_full);
         return(false);
     }
 }