From 4e97da8e138b21a5f5bea75e6a8d3211e4f28594 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 24 Mar 2016 23:29:04 +0300 Subject: Add enum for item types. --- src/net/ea/inventoryitem.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/net/ea/inventoryitem.h') 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, -- cgit v1.2.3-60-g2f50