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); } }
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); } }