summaryrefslogtreecommitdiff
path: root/src/net/ea/inventoryitem.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-24 23:29:04 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-24 23:29:04 +0300
commit4e97da8e138b21a5f5bea75e6a8d3211e4f28594 (patch)
treec10d3cad963066a908ebd42041723e110a0c9bf0 /src/net/ea/inventoryitem.h
parentca0ca278d0c4aed9a6d50bb9a8982f5261151ab8 (diff)
downloadmanaverse-4e97da8e138b21a5f5bea75e6a8d3211e4f28594.tar.gz
manaverse-4e97da8e138b21a5f5bea75e6a8d3211e4f28594.tar.bz2
manaverse-4e97da8e138b21a5f5bea75e6a8d3211e4f28594.tar.xz
manaverse-4e97da8e138b21a5f5bea75e6a8d3211e4f28594.zip
Add enum for item types.
Diffstat (limited to 'src/net/ea/inventoryitem.h')
-rw-r--r--src/net/ea/inventoryitem.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/net/ea/inventoryitem.h b/src/net/ea/inventoryitem.h
index 7971c9584..212ee98dc 100644
--- a/src/net/ea/inventoryitem.h
+++ b/src/net/ea/inventoryitem.h
@@ -25,6 +25,8 @@
#include "const/resources/item/cards.h"
+#include "enums/resources/itemtype.h"
+
#include "enums/simpletypes/damaged.h"
#include "enums/simpletypes/equipm.h"
#include "enums/simpletypes/favorite.h"
@@ -52,7 +54,7 @@ class InventoryItem final
public:
int slot;
int id;
- int type;
+ ItemTypeT type;
int cards[maxCards];
int quantity;
uint8_t refine;
@@ -64,7 +66,7 @@ class InventoryItem final
InventoryItem(const int slot0,
const int id0,
- const int type0,
+ const ItemTypeT type0,
const int *const cards0,
const int quantity0,
const uint8_t refine0,