2012-01-29 14:28:19 -05:00
|
|
|
|
|
|
|
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
|
|
|
|
|
2011-11-02 16:40:39 -04:00
|
|
|
#include "cPacket_NewInvalidState.h"
|
|
|
|
|
2012-01-29 14:28:19 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-02 16:40:39 -04:00
|
|
|
cPacket_NewInvalidState::cPacket_NewInvalidState( const cPacket_NewInvalidState & a_Copy )
|
|
|
|
{
|
|
|
|
m_PacketID = E_NEW_INVALID_STATE;
|
2012-02-07 15:49:52 -05:00
|
|
|
m_Reason = a_Copy.m_Reason;
|
2011-11-02 16:40:39 -04:00
|
|
|
m_GameMode = a_Copy.m_GameMode;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-02-07 15:49:52 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int cPacket_NewInvalidState::Parse(const char * a_Data, int a_Size)
|
2011-11-02 16:40:39 -04:00
|
|
|
{
|
2012-02-07 15:49:52 -05:00
|
|
|
int TotalBytes = 0;
|
|
|
|
HANDLE_PACKET_READ(ReadByte, m_Reason, TotalBytes);
|
|
|
|
HANDLE_PACKET_READ(ReadByte, m_GameMode, TotalBytes);
|
|
|
|
return TotalBytes;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-11-02 16:40:39 -04:00
|
|
|
|
|
|
|
|
2012-02-07 15:49:52 -05:00
|
|
|
|
|
|
|
void cPacket_NewInvalidState::Serialize(AString & a_Data) const
|
|
|
|
{
|
|
|
|
AppendByte(a_Data, m_PacketID);
|
|
|
|
AppendByte(a_Data, m_Reason);
|
|
|
|
AppendByte(a_Data, m_GameMode);
|
2011-11-02 16:40:39 -04:00
|
|
|
}
|
2012-02-07 15:49:52 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|