Mooege.Core.GS.Common.InventoryGrid.AddItem C# (CSharp) Method

AddItem() public method

Adds an Item at a free spot to the backpack
public AddItem ( Item item ) : bool
item Item
return bool
        public bool AddItem(Item item)
        {
            InventorySlot? slot = FindSlotForItem(item);
            if (slot.HasValue)
            {
                AddItem(item, slot.Value.Row, slot.Value.Column);
                return true;
            }
            else
            {
                Logger.Error("Can't find slot in backpack to add item {0}", item.SNOName);
                return false;
            }
        }

Same methods

InventoryGrid::AddItem ( Item item, int row, int column ) : void