diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-10-15 21:14:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-10-15 21:14:04 +0300 |
commit | 7b89705cc5c491b60dab923e2f8079cfc1f4bce1 (patch) | |
tree | a3a5ceb5a142b9b954eab23c39946b0825218169 /src/enums/resources | |
parent | 8b22861c92f1cec3af31b8b9e97b16498b2d86d0 (diff) | |
download | manaplus-7b89705cc5c491b60dab923e2f8079cfc1f4bce1.tar.gz manaplus-7b89705cc5c491b60dab923e2f8079cfc1f4bce1.tar.bz2 manaplus-7b89705cc5c491b60dab923e2f8079cfc1f4bce1.tar.xz manaplus-7b89705cc5c491b60dab923e2f8079cfc1f4bce1.zip |
Convert BlockType into strong typed enum.
Diffstat (limited to 'src/enums/resources')
-rw-r--r-- | src/enums/resources/map/blocktype.h | 28 |
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 |