Ejemplo n.º 1
0
 public bool GetItemSlotInfo(int slotIndex, out SlotInfo OutslotInfo)
 {
     if (_inventorySlots == null || _inventorySlots.Count == 0)
     {
         OutslotInfo = new SlotInfo(null);
         return(false);
     }
     OutslotInfo = _inventorySlots[slotIndex].GetSlotInfo();
     return(true);
 }
Ejemplo n.º 2
0
        public bool GetItemSlotsInfo(out SlotInfo[] OutSlotsData)
        {
            if (_inventorySlots == null || _inventorySlots.Count == 0)
            {
                OutSlotsData = null;
                return(false);
            }

            SlotInfo[] infos = new SlotInfo[_inventorySlots.Count];
            for (int i = 0; i < _inventorySlots.Count; i++)
            {
                infos[i] = _inventorySlots[i].GetSlotInfo();
            }
            OutSlotsData = infos;
            return(true);
        }