diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-11-16 22:17:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-11-16 22:17:15 +0300 |
commit | 5e8e53f6e795a84ab5ca6cfe0d08672878044707 (patch) | |
tree | 23f5a196c6a288ef52cea2742b02ddbc52b2db61 /src/enums | |
parent | 0c063cf5b45a843485fe3343e5fb79a40141f88c (diff) | |
download | manaplus-5e8e53f6e795a84ab5ca6cfe0d08672878044707.tar.gz manaplus-5e8e53f6e795a84ab5ca6cfe0d08672878044707.tar.bz2 manaplus-5e8e53f6e795a84ab5ca6cfe0d08672878044707.tar.xz manaplus-5e8e53f6e795a84ab5ca6cfe0d08672878044707.zip |
Convert InventoryType enum into strong typed.
Diffstat (limited to 'src/enums')
-rw-r--r-- | src/enums/inventorytype.h | 26 |
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 |