summaryrefslogtreecommitdiff
path: root/src/enums
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-03 12:26:54 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-03 12:26:54 +0300
commita75b710fbde53288d250d287eb61254e2adb3012 (patch)
treef7f1d63ebf54b576d503a7dbb56e80213145bb24 /src/enums
parent6b15e62c1fefe8838bbc56cb314f3ab24ccebbc4 (diff)
downloadplus-a75b710fbde53288d250d287eb61254e2adb3012.tar.gz
plus-a75b710fbde53288d250d287eb61254e2adb3012.tar.bz2
plus-a75b710fbde53288d250d287eb61254e2adb3012.tar.xz
plus-a75b710fbde53288d250d287eb61254e2adb3012.zip
User full enum name in packets type.
Diffstat (limited to 'src/enums')
-rw-r--r--src/enums/net/packettypes.h9
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