Added TextPacket

This commit is contained in:
Kayne Ruse
2014-09-09 08:05:50 +10:00
parent f581c3238f
commit 4c882682ed
7 changed files with 111 additions and 7 deletions
+3 -1
View File
@@ -27,18 +27,20 @@
#include "client_packet.hpp"
#include "region_packet.hpp"
#include "server_packet.hpp"
#include "text_packet.hpp"
//SerialPacketBase is defined in serial_packet_base.hpp
typedef SerialPacketBase SerialPacket;
//DOCS: NETWORK_VERSION is used to discern compatible servers and clients
constexpr int NETWORK_VERSION = 20140831;
constexpr int NETWORK_VERSION = 20140909;
union MaxPacket {
CharacterPacket a;
ClientPacket b;
RegionPacket c;
ServerPacket d;
TextPacket e;
};
constexpr int MAX_PACKET_SIZE = sizeof(MaxPacket);