summaryrefslogtreecommitdiff
path: root/src/enums/dragdropsource.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-16 21:16:07 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-16 21:16:07 +0300
commit0c063cf5b45a843485fe3343e5fb79a40141f88c (patch)
treee2419701a312e0ba97404049cd5b82b7420c3fce /src/enums/dragdropsource.h
parentdb82bf99bbd6d246f3e8da19fe88705f7015f144 (diff)
downloadmv-0c063cf5b45a843485fe3343e5fb79a40141f88c.tar.gz
mv-0c063cf5b45a843485fe3343e5fb79a40141f88c.tar.bz2
mv-0c063cf5b45a843485fe3343e5fb79a40141f88c.tar.xz
mv-0c063cf5b45a843485fe3343e5fb79a40141f88c.zip
Convert DragDropSource enum into strong typed enum.
Diffstat (limited to 'src/enums/dragdropsource.h')
-rw-r--r--src/enums/dragdropsource.h39
1 files changed, 22 insertions, 17 deletions
diff --git a/src/enums/dragdropsource.h b/src/enums/dragdropsource.h
index 37ec91d79..f98084a11 100644
--- a/src/enums/dragdropsource.h
+++ b/src/enums/dragdropsource.h
@@ -21,25 +21,30 @@
#ifndef ENUMS_DRAGDROPSOURCE_H
#define ENUMS_DRAGDROPSOURCE_H
-enum DragDropSource
+#include "enums/simpletypes/enumdefines.h"
+
+enumStart(DragDropSource)
{
- DRAGDROP_SOURCE_EMPTY = 0,
- DRAGDROP_SOURCE_INVENTORY,
- DRAGDROP_SOURCE_STORAGE,
- DRAGDROP_SOURCE_TRADE,
- DRAGDROP_SOURCE_OUTFIT,
- DRAGDROP_SOURCE_SPELLS,
- DRAGDROP_SOURCE_SKILLS,
- DRAGDROP_SOURCE_GROUND,
- DRAGDROP_SOURCE_DROP,
- DRAGDROP_SOURCE_SHORTCUTS,
- DRAGDROP_SOURCE_CRAFT,
- DRAGDROP_SOURCE_NPC,
- DRAGDROP_SOURCE_EQUIPMENT,
+ Empty = 0,
+ Inventory,
+ Storage,
+ Trade,
+ Outfit,
+ Spells,
+ Skills,
+ Ground,
+ Drop,
+ Shortcuts,
+ Craft,
+ Npc,
#ifdef EATHENA_SUPPORT
- DRAGDROP_SOURCE_CART,
- DRAGDROP_SOURCE_MAIL
+ Equipment,
+ Cart,
+ Mail
+#else
+ Equipment
#endif
-};
+}
+enumEnd(DragDropSource);
#endif // ENUMS_DRAGDROPSOURCE_H