summaryrefslogtreecommitdiff
path: root/src/net/eathena/inventoryhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-06 16:26:35 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-06 16:26:35 +0300
commit599551a69be2872c3cf9916c7f9814af73b56203 (patch)
tree3b09933e04eb9ced5216c6f85d62bd8f092c2d4e /src/net/eathena/inventoryhandler.cpp
parent51ecf500f30bb26ae1e08f3b4187386b6a9edf9b (diff)
downloadplus-599551a69be2872c3cf9916c7f9814af73b56203.tar.gz
plus-599551a69be2872c3cf9916c7f9814af73b56203.tar.bz2
plus-599551a69be2872c3cf9916c7f9814af73b56203.tar.xz
plus-599551a69be2872c3cf9916c7f9814af73b56203.zip
Move equip slots enum into separate file.
Diffstat (limited to 'src/net/eathena/inventoryhandler.cpp')
-rw-r--r--src/net/eathena/inventoryhandler.cpp36
1 files changed, 19 insertions, 17 deletions
diff --git a/src/net/eathena/inventoryhandler.cpp b/src/net/eathena/inventoryhandler.cpp
index 4f0f833b0..f628073f0 100644
--- a/src/net/eathena/inventoryhandler.cpp
+++ b/src/net/eathena/inventoryhandler.cpp
@@ -24,6 +24,8 @@
#include "notifymanager.h"
+#include "enums/equipslot.h"
+
#include "being/localplayer.h"
#include "listeners/arrowslistener.h"
@@ -42,24 +44,24 @@
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_GLOVES_SLOT, // 4 0
- Equipment::EQUIP_EVOL_RING1_SLOT, // 5
- Equipment::EQUIP_PROJECTILE_SLOT, // 6 0
- Equipment::EQUIP_HEAD_SLOT, // 7 SPRITE_CLOTHES_COLOR
- Equipment::EQUIP_RING2_SLOT, // 8 0
- Equipment::EQUIP_PROJECTILE_SLOT, // 9 SPRITE_SHOES
- Equipment::EQUIP_FIGHT1_SLOT, // 10 SPRITE_BODY
- Equipment::EQUIP_FIGHT2_SLOT, // 11 SPRITE_FLOOR
- Equipment::EQUIP_EVOL_RING2_SLOT, // 12
- Equipment::EQUIP_PROJECTILE_SLOT, // 13 SPRITE_EVOL2
- Equipment::EQUIP_COSTUME_ROBE_SLOT, // 14 SPRITE_EVOL3
- Equipment::EQUIP_RING1_SLOT, // 15 SPRITE_EVOL4
+ 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::GLOVES_SLOT, // 4 0
+ EquipSlot::EVOL_RING1_SLOT, // 5
+ EquipSlot::PROJECTILE_SLOT, // 6 0
+ EquipSlot::HEAD_SLOT, // 7 SPRITE_CLOTHES_COLOR
+ EquipSlot::RING2_SLOT, // 8 0
+ EquipSlot::PROJECTILE_SLOT, // 9 SPRITE_SHOES
+ EquipSlot::FIGHT1_SLOT, // 10 SPRITE_BODY
+ EquipSlot::FIGHT2_SLOT, // 11 SPRITE_FLOOR
+ EquipSlot::EVOL_RING2_SLOT, // 12
+ EquipSlot::PROJECTILE_SLOT, // 13 SPRITE_EVOL2
+ EquipSlot::COSTUME_ROBE_SLOT, // 14 SPRITE_EVOL3
+ EquipSlot::RING1_SLOT, // 15 SPRITE_EVOL4
};
namespace EAthena