summaryrefslogtreecommitdiff
path: root/src/enums
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-15 21:14:04 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-15 21:14:04 +0300
commit7b89705cc5c491b60dab923e2f8079cfc1f4bce1 (patch)
treea3a5ceb5a142b9b954eab23c39946b0825218169 /src/enums
parent8b22861c92f1cec3af31b8b9e97b16498b2d86d0 (diff)
downloadmv-7b89705cc5c491b60dab923e2f8079cfc1f4bce1.tar.gz
mv-7b89705cc5c491b60dab923e2f8079cfc1f4bce1.tar.bz2
mv-7b89705cc5c491b60dab923e2f8079cfc1f4bce1.tar.xz
mv-7b89705cc5c491b60dab923e2f8079cfc1f4bce1.zip
Convert BlockType into strong typed enum.
Diffstat (limited to 'src/enums')
-rw-r--r--src/enums/resources/map/blocktype.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/enums/resources/map/blocktype.h b/src/enums/resources/map/blocktype.h
index 5909703cb..0b5ee9179 100644
--- a/src/enums/resources/map/blocktype.h
+++ b/src/enums/resources/map/blocktype.h
@@ -23,20 +23,20 @@
#ifndef ENUMS_RESOURCES_MAP_BLOCKTYPE_H
#define ENUMS_RESOURCES_MAP_BLOCKTYPE_H
-namespace BlockType
+#include "enums/simpletypes/enumdefines.h"
+
+enumStart(BlockType)
{
- enum BlockType
- {
- NONE = -1,
- WALL,
- CHARACTER,
- MONSTER,
- AIR,
- WATER,
- GROUND,
- GROUNDTOP,
- NB_BLOCKTYPES
- };
-} // namespace BlockType
+ NONE = -1,
+ WALL,
+ CHARACTER,
+ MONSTER,
+ AIR,
+ WATER,
+ GROUND,
+ GROUNDTOP,
+ NB_BLOCKTYPES
+}
+enumEnd(BlockType);
#endif // ENUMS_RESOURCES_MAP_BLOCKTYPE_H