Example #1
0
 private void MoveItemFromInventoryToEquiped(Item itemToWear, EquipedItem itemSlot)
 {
     if (itemSlot.Item != null)
     {
         this.Items.Add(itemSlot.Item);
     }
     itemSlot.Item = itemToWear;
     this.Items.Remove(itemToWear);
 }
Example #2
0
 private void MoveItemFromInventoryToEquiped(Item itemToWear, EquipedItem itemSlot)
 {
     if (itemSlot.Item != null)
     {
         this.Items.Add(itemSlot.Item);
     }
     itemSlot.Item = itemToWear;
     this.Items.Remove(itemToWear);
 }