diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-03 13:04:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-03 13:04:25 +0300 |
commit | c5bce143546ffc64de9be6b3284a6d4edb72839d (patch) | |
tree | 11a59aeec8403609b39af66e70f95313dd9adf11 /src/enums/net | |
parent | 07cf20b698bba9b5800ecbda3788ef441b9c49c2 (diff) | |
download | plus-c5bce143546ffc64de9be6b3284a6d4edb72839d.tar.gz plus-c5bce143546ffc64de9be6b3284a6d4edb72839d.tar.bz2 plus-c5bce143546ffc64de9be6b3284a6d4edb72839d.tar.xz plus-c5bce143546ffc64de9be6b3284a6d4edb72839d.zip |
Convert PacketType enum into strong typed enum.
Diffstat (limited to 'src/enums/net')
-rw-r--r-- | src/enums/net/packettype.h | 10 |
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 |