summaryrefslogtreecommitdiff
path: root/src/resources/inventory/inventory.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/resources/inventory/inventory.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/resources/inventory/inventory.h')
-rw-r--r--src/resources/inventory/inventory.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/resources/inventory/inventory.h b/src/resources/inventory/inventory.h
index 9186fbd73..f687339cb 100644
--- a/src/resources/inventory/inventory.h
+++ b/src/resources/inventory/inventory.h
@@ -25,6 +25,8 @@
#include "enums/inventorytype.h"
+#include "enums/resources/itemtype.h"
+
#include "enums/simpletypes/beingtypeid.h"
#include "enums/simpletypes/damaged.h"
#include "enums/simpletypes/equipm.h"
@@ -90,7 +92,7 @@ class Inventory notfinal
* Adds a new item in a free slot.
*/
int addItem(const int id,
- const int type,
+ const ItemTypeT type,
const int quantity,
const uint8_t refine,
const ItemColor color,
@@ -105,7 +107,7 @@ class Inventory notfinal
*/
virtual void setItem(const int index,
const int id,
- const int type,
+ const ItemTypeT type,
const int quantity,
const uint8_t refine,
const ItemColor color,