2012-06-14 09:06:06 -04:00
|
|
|
|
|
|
|
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
|
|
|
|
|
|
|
#include "cPacket_Disconnect.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2012-08-17 06:18:07 -04:00
|
|
|
int cPacket_Disconnect::Parse(cByteBuffer & a_Buffer)
|
2012-06-14 09:06:06 -04:00
|
|
|
{
|
|
|
|
int TotalBytes = 0;
|
2012-08-17 06:18:07 -04:00
|
|
|
HANDLE_PACKET_READ(ReadBEUTF16String16, m_Reason, TotalBytes);
|
2012-06-14 09:06:06 -04:00
|
|
|
return TotalBytes;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void cPacket_Disconnect::Serialize(AString & a_Data) const
|
|
|
|
{
|
|
|
|
AppendByte (a_Data, m_PacketID);
|
|
|
|
AppendString16(a_Data, m_Reason);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|