Exemple #1
0
 public bool AddItem(ItemObject newItem)
 {
     if (newItem == null)
     {
         return(false);
     }
     if (container.Contains(newItem) == false)
     {
         LogHelper.Log("Add new Item to Inventory: " + newItem);
         container.Add(newItem);
     }
     newItem.IncreaseAmountInInventory();
     LogHelper.Log(newItem + " increases count in Inventory by 1" + "- Current Amount : " + newItem.GetAmountInInventory());
     return(true);
 }