Beispiel #1
0
        public bool HasItem(int itemID, int quantity = 1)
        {
            InventoryItem invItem = Inventory.SingleOrDefault(ii => ii.ID == itemID);

            return(invItem != null && invItem.Quantity >= quantity);
        }