Exemple #1
0
        public bool AddItem(PaperItem itemToAdd)
        {
            if (InventoryItems.Count >= INVENTORY_MAX_SIZE)
            {
                return(false);
            }

            InventoryItems.Add(itemToAdd);
            return(true);
        }
Exemple #2
0
        public bool RemoveItem(PaperItem itemToRemove)
        {
            var ItemIndex = InventoryItems.IndexOf(itemToRemove);

            return(RemoveItem(ItemIndex));
        }