Created MAX_PACKET_SIZE

This commit is contained in:
Kayne Ruse
2014-06-08 00:36:05 +10:00
parent 63be0ee70d
commit ee2ac0b7a9
2 changed files with 28 additions and 3 deletions
+10
View File
@@ -31,4 +31,14 @@
//NOTE: SerialPacket is defined in serial_packet_base.hpp
union MaxPacket {
CharacterPacket a;
ClientPacket b;
CombatPacket c;
EnemyPacket d;
RegionPacket e;
ServerPacket f;
};
constexpr int MAX_PACKET_SIZE = sizeof(MaxPacket);
#endif