Пример #1
0
 /// <summary>Unequips the currently held <see cref="Item"/> and puts it in the Inventory.</summary>
 /// <param name="clickedSlot"><see cref="ItemSlot"/> that was clicked on</param>
 /// <param name="hand"><see cref="RingHand"/> to place a Ring on if <see cref="Item"/> is a Ring</param>
 private void UnEquipAndPut(ItemSlot clickedSlot, RingHand hand = RingHand.Left)
 {
     CurrentHero.Unequip(holdingItem.Item, hand);
     PutItem(clickedSlot);
 }
Пример #2
0
 /// <summary>Equips the currently held <see cref="Item"/> and swaps out the previously equipped <see cref="Item"/>.</summary>
 /// <param name="clickedSlot"><see cref="ItemSlot"/> that was clicked on</param>
 /// <param name="hand"><see cref="RingHand"/> to place a Ring on if <see cref="Item"/> is a Ring</param>
 private void EquipAndSwap(ItemSlot clickedSlot, RingHand hand = RingHand.Left)
 {
     CurrentHero.Equip(holdingItem.Item, hand);
     SwapItems(clickedSlot);
 }