public bool Receive(ItemAbstract item, int groupIdx, int slotIdx) { if (groupIdx < this.groups.Count) { return(this.groups[groupIdx].Receive(item, slotIdx)); } return(false); }
public bool Receive(ItemAbstract item, int slotIdx) { if (slotIdx < this.slots.Count) { return(this.slots[slotIdx].Receive(item)); } return(false); }
internal bool Receive(ItemAbstract item) { if (this.item == null && this.lever?.LeverStatus == LeverStatus.Open) { this.item = item; return(true); } return(false); }
internal ItemAbstract Release() { ItemAbstract outItem = null; if (this.item != null && this.lever?.LeverStatus == LeverStatus.Open) { outItem = this.item; this.item = null; } return(outItem); }