Ejemplo n.º 1
0
        public void AddItem(IInventoryItem item)
        {
            int slot = FindSlot();

            if (slot < SLOTS)
            {
                item.SetCurrentSlot(slot);
                mItem[slot] = item;
                itemAdded?.Invoke(this, new InventoryEventArgs(item));
            }
        }