Beispiel #1
0
 public bool Receive(ItemAbstract item, int groupIdx, int slotIdx)
 {
     if (groupIdx < this.groups.Count)
     {
         return(this.groups[groupIdx].Receive(item, slotIdx));
     }
     return(false);
 }
Beispiel #2
0
        public bool Receive(ItemAbstract item, int slotIdx)
        {
            if (slotIdx < this.slots.Count)
            {
                return(this.slots[slotIdx].Receive(item));
            }

            return(false);
        }
Beispiel #3
0
        internal bool Receive(ItemAbstract item)
        {
            if (this.item == null && this.lever?.LeverStatus == LeverStatus.Open)
            {
                this.item = item;
                return(true);
            }

            return(false);
        }
Beispiel #4
0
        internal ItemAbstract Release()
        {
            ItemAbstract outItem = null;

            if (this.item != null && this.lever?.LeverStatus == LeverStatus.Open)
            {
                outItem   = this.item;
                this.item = null;
            }

            return(outItem);
        }