public int GetItemIdBySlot(EquipSlot slot)
        {
            var target = StorageItems[slot.GetHashCode()];
            if (target != null)
                return target.ItemId;

            return 0;
        }
示例#2
0
        public int GetItemIdBySlot(EquipSlot slot)
        {
            var target = StorageItems[slot.GetHashCode()];

            if (target != null)
            {
                return(target.ItemId);
            }

            return(0);
        }
示例#3
0
        public bool IsEquip(EquipSlot type)
        {
            var targetItem = StorageItems[type.GetHashCode()];

            if (targetItem != null)
            {
                return(true);
            }

            return(false);
        }
 public AStorageItem GetItemByEquipSlot(EquipSlot slot)
 {
     return StorageItems[slot.GetHashCode()];
 }
        public bool IsEquip(EquipSlot type)
        {
            var targetItem = StorageItems[type.GetHashCode()];
            if (targetItem != null)
                return true;

            return false;
        }
示例#6
0
 public AStorageItem GetItemByEquipSlot(EquipSlot slot)
 {
     return(StorageItems[slot.GetHashCode()]);
 }