summaryrefslogtreecommitdiff
path: root/src/enums
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-16 22:17:15 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-16 22:17:15 +0300
commit5e8e53f6e795a84ab5ca6cfe0d08672878044707 (patch)
tree23f5a196c6a288ef52cea2742b02ddbc52b2db61 /src/enums
parent0c063cf5b45a843485fe3343e5fb79a40141f88c (diff)
downloadmv-5e8e53f6e795a84ab5ca6cfe0d08672878044707.tar.gz
mv-5e8e53f6e795a84ab5ca6cfe0d08672878044707.tar.bz2
mv-5e8e53f6e795a84ab5ca6cfe0d08672878044707.tar.xz
mv-5e8e53f6e795a84ab5ca6cfe0d08672878044707.zip
Convert InventoryType enum into strong typed.
Diffstat (limited to 'src/enums')
-rw-r--r--src/enums/inventorytype.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/enums/inventorytype.h b/src/enums/inventorytype.h
index fe24864d3..cd4ff4732 100644
--- a/src/enums/inventorytype.h
+++ b/src/enums/inventorytype.h
@@ -23,21 +23,21 @@
#ifndef ENUMS_INVENTORYTYPE_H
#define ENUMS_INVENTORYTYPE_H
-namespace InventoryType
+#include "enums/simpletypes/enumdefines.h"
+
+enumStart(InventoryType)
{
- enum Type
- {
- INVENTORY = 0,
- STORAGE,
- TRADE,
- NPC,
+ Inventory = 0,
+ Storage,
+ Trade,
+ Npc,
#ifdef EATHENA_SUPPORT
- CART,
- VENDING,
- MAIL,
+ Cart,
+ Vending,
+ Mail,
#endif
- TYPE_END
- };
-} // namespace InventoryType
+ TypeEnd
+}
+enumEnd(InventoryType);
#endif // ENUMS_INVENTORYTYPE_H