diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-30 01:11:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-30 01:11:50 +0300 |
commit | b42cc5c01d3bdd274d9b9e90aad574d865c4e67a (patch) | |
tree | a88981f53929b4608b6110fd266aebbc311ccbcc /src/enums/gui | |
parent | 2e07a7af24cf8a2928ab6a3431ab5b01b29969bb (diff) | |
download | plus-b42cc5c01d3bdd274d9b9e90aad574d865c4e67a.tar.gz plus-b42cc5c01d3bdd274d9b9e90aad574d865c4e67a.tar.bz2 plus-b42cc5c01d3bdd274d9b9e90aad574d865c4e67a.tar.xz plus-b42cc5c01d3bdd274d9b9e90aad574d865c4e67a.zip |
Convert ChatMsgType enum into strong typed enum.
Diffstat (limited to 'src/enums/gui')
-rw-r--r-- | src/enums/gui/chatmsgtype.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/enums/gui/chatmsgtype.h b/src/enums/gui/chatmsgtype.h index baacb57fd..947a83ff9 100644 --- a/src/enums/gui/chatmsgtype.h +++ b/src/enums/gui/chatmsgtype.h @@ -23,20 +23,20 @@ #ifndef ENUMS_GUI_CHATMSGTYPE_H #define ENUMS_GUI_CHATMSGTYPE_H -namespace ChatMsgType +#include "enums/simpletypes/enumdefines.h" + +enumStart(ChatMsgType) { - enum Type - { - BY_GM = 0, - BY_PLAYER, - BY_OTHER, - BY_SERVER, - BY_CHANNEL, - ACT_WHISPER, // getting whispered at - ACT_IS, // equivalent to "/me" on IRC - BY_LOGGER, - BY_UNKNOWN = -1 - }; -} // namespace ChatMsgType + BY_GM = 0, + BY_PLAYER, + BY_OTHER, + BY_SERVER, + BY_CHANNEL, + ACT_WHISPER, // getting whispered at + ACT_IS, // equivalent to "/me" on IRC + BY_LOGGER, + BY_UNKNOWN = -1 +} +enumEnd(ChatMsgType); #endif // ENUMS_GUI_CHATMSGTYPE_H |