示例#1
0
 public void RemoveItemFromInventory(GameItems item)
 {
     Inventory.Remove(item);
 }
示例#2
0
        public void AddItemToInventory(GameItems item)
        {
            Inventory.Add(item);

            OnPropertyChanged(nameof(Weapons));
        }
示例#3
0
 public void AddItemToInventory(GameItems item)
 {
     Inventory.Add(item);
 }
示例#4
0
        //Similiar to AddItemToInventory method, we need to notify UI we a gameitem was removed
        public void RemoveItemFromInventory(GameItems item)
        {
            Inventory.Remove(item);

            OnPropertyChanged(nameof(Weapons));
        }