diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-03 12:26:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-03 12:26:54 +0300 |
commit | a75b710fbde53288d250d287eb61254e2adb3012 (patch) | |
tree | f7f1d63ebf54b576d503a7dbb56e80213145bb24 /src/enums | |
parent | 6b15e62c1fefe8838bbc56cb314f3ab24ccebbc4 (diff) | |
download | mv-a75b710fbde53288d250d287eb61254e2adb3012.tar.gz mv-a75b710fbde53288d250d287eb61254e2adb3012.tar.bz2 mv-a75b710fbde53288d250d287eb61254e2adb3012.tar.xz mv-a75b710fbde53288d250d287eb61254e2adb3012.zip |
User full enum name in packets type.
Diffstat (limited to 'src/enums')
-rw-r--r-- | src/enums/net/packettypes.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/enums/net/packettypes.h b/src/enums/net/packettypes.h index 4da22895a..280b75ce5 100644 --- a/src/enums/net/packettypes.h +++ b/src/enums/net/packettypes.h @@ -21,8 +21,10 @@ #ifndef ENUMS_NET_PACKETTYPES_H #define ENUMS_NET_PACKETTYPES_H -enum PacketTypes +namespace PacketType { + enum T + { PACKET_CHAT = 0, PACKET_PICKUP = 1, PACKET_DROP = 2, @@ -37,6 +39,9 @@ enum PacketTypes PACKET_ONLINELIST = 11, PACKET_WHISPER = 12, PACKET_SIZE -}; + }; +} + +typedef PacketType::T PacketTypeT; #endif // ENUMS_NET_PACKETTYPES_H |