diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-06 16:26:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-06 16:26:35 +0300 |
commit | 599551a69be2872c3cf9916c7f9814af73b56203 (patch) | |
tree | 3b09933e04eb9ced5216c6f85d62bd8f092c2d4e /src/net/tmwa/inventoryhandler.cpp | |
parent | 51ecf500f30bb26ae1e08f3b4187386b6a9edf9b (diff) | |
download | manaverse-599551a69be2872c3cf9916c7f9814af73b56203.tar.gz manaverse-599551a69be2872c3cf9916c7f9814af73b56203.tar.bz2 manaverse-599551a69be2872c3cf9916c7f9814af73b56203.tar.xz manaverse-599551a69be2872c3cf9916c7f9814af73b56203.zip |
Move equip slots enum into separate file.
Diffstat (limited to 'src/net/tmwa/inventoryhandler.cpp')
-rw-r--r-- | src/net/tmwa/inventoryhandler.cpp | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/src/net/tmwa/inventoryhandler.cpp b/src/net/tmwa/inventoryhandler.cpp index 0e855430a..8fa8a497e 100644 --- a/src/net/tmwa/inventoryhandler.cpp +++ b/src/net/tmwa/inventoryhandler.cpp @@ -24,6 +24,8 @@ #include "notifymanager.h" +#include "enums/equipslot.h" + #include "being/localplayer.h" #include "listeners/arrowslistener.h" @@ -42,22 +44,22 @@ extern Net::InventoryHandler *inventoryHandler; // missing EQUIP_RING1_SLOT -const Equipment::Slot EQUIP_CONVERT[] = +const EquipSlot::Type EQUIP_CONVERT[] = { - Equipment::EQUIP_PROJECTILE_SLOT, // 0 0 - Equipment::EQUIP_FEET_SLOT, // 1 SPRITE_HAIR - Equipment::EQUIP_LEGS_SLOT, // 2 SPRITE_WEAPON - Equipment::EQUIP_TORSO_SLOT, // 3 SPRITE_HEAD_BOTTOM - Equipment::EQUIP_PROJECTILE_SLOT, // 4 0 - Equipment::EQUIP_NECK_SLOT, // 5 SPRITE_RING - Equipment::EQUIP_PROJECTILE_SLOT, // 6 0 - Equipment::EQUIP_HEAD_SLOT, // 7 SPRITE_CLOTHES_COLOR - Equipment::EQUIP_RING2_SLOT, // 8 0 - Equipment::EQUIP_GLOVES_SLOT, // 9 SPRITE_SHOES - Equipment::EQUIP_FIGHT1_SLOT, // 10 SPRITE_BODY - Equipment::EQUIP_FIGHT2_SLOT, // 11 SPRITE_FLOOR - Equipment::EQUIP_EVOL_RING1_SLOT, // 12 SPRITE_ROBE - Equipment::EQUIP_EVOL_RING2_SLOT, // 13 SPRITE_EVOL2 + EquipSlot::PROJECTILE_SLOT, // 0 0 + EquipSlot::FEET_SLOT, // 1 SPRITE_HAIR + EquipSlot::LEGS_SLOT, // 2 SPRITE_WEAPON + EquipSlot::TORSO_SLOT, // 3 SPRITE_HEAD_BOTTOM + EquipSlot::PROJECTILE_SLOT, // 4 0 + EquipSlot::NECK_SLOT, // 5 SPRITE_RING + EquipSlot::PROJECTILE_SLOT, // 6 0 + EquipSlot::HEAD_SLOT, // 7 SPRITE_CLOTHES_COLOR + EquipSlot::RING2_SLOT, // 8 0 + EquipSlot::GLOVES_SLOT, // 9 SPRITE_SHOES + EquipSlot::FIGHT1_SLOT, // 10 SPRITE_BODY + EquipSlot::FIGHT2_SLOT, // 11 SPRITE_FLOOR + EquipSlot::EVOL_RING1_SLOT, // 12 SPRITE_ROBE + EquipSlot::EVOL_RING2_SLOT, // 13 SPRITE_EVOL2 }; namespace TmwAthena |