summaryrefslogtreecommitdiff
path: root/src/enums/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-03 13:04:25 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-03 13:04:25 +0300
commitc5bce143546ffc64de9be6b3284a6d4edb72839d (patch)
tree11a59aeec8403609b39af66e70f95313dd9adf11 /src/enums/net
parent07cf20b698bba9b5800ecbda3788ef441b9c49c2 (diff)
downloadmanaplus-c5bce143546ffc64de9be6b3284a6d4edb72839d.tar.gz
manaplus-c5bce143546ffc64de9be6b3284a6d4edb72839d.tar.bz2
manaplus-c5bce143546ffc64de9be6b3284a6d4edb72839d.tar.xz
manaplus-c5bce143546ffc64de9be6b3284a6d4edb72839d.zip
Convert PacketType enum into strong typed enum.
Diffstat (limited to 'src/enums/net')
-rw-r--r--src/enums/net/packettype.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/enums/net/packettype.h b/src/enums/net/packettype.h
index 9298a9a8e..ed425aa7a 100644
--- a/src/enums/net/packettype.h
+++ b/src/enums/net/packettype.h
@@ -21,10 +21,10 @@
#ifndef ENUMS_NET_PACKETTYPE_H
#define ENUMS_NET_PACKETTYPE_H
-namespace PacketType
+#include "enums/simpletypes/enumdefines.h"
+
+enumStart(PacketType)
{
- enum T
- {
PACKET_CHAT = 0,
PACKET_PICKUP = 1,
PACKET_DROP = 2,
@@ -39,9 +39,7 @@ namespace PacketType
PACKET_ONLINELIST = 11,
PACKET_WHISPER = 12,
PACKET_SIZE
- };
}
-
-typedef PacketType::T PacketTypeT;
+enumEnd(PacketType);
#endif // ENUMS_NET_PACKETTYPE_H