summaryrefslogtreecommitdiff
path: root/src/enums/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-30 01:11:50 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-30 01:11:50 +0300
commitb42cc5c01d3bdd274d9b9e90aad574d865c4e67a (patch)
treea88981f53929b4608b6110fd266aebbc311ccbcc /src/enums/gui
parent2e07a7af24cf8a2928ab6a3431ab5b01b29969bb (diff)
downloadmv-b42cc5c01d3bdd274d9b9e90aad574d865c4e67a.tar.gz
mv-b42cc5c01d3bdd274d9b9e90aad574d865c4e67a.tar.bz2
mv-b42cc5c01d3bdd274d9b9e90aad574d865c4e67a.tar.xz
mv-b42cc5c01d3bdd274d9b9e90aad574d865c4e67a.zip
Convert ChatMsgType enum into strong typed enum.
Diffstat (limited to 'src/enums/gui')
-rw-r--r--src/enums/gui/chatmsgtype.h28
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