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-06 20:41:54 -05:00
|
|
|
#include "cPacket_BlockAction.h"
|
|
|
|
|
2012-01-29 14:28:19 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-11-06 20:41:54 -05:00
|
|
|
cPacket_BlockAction::cPacket_BlockAction( const cPacket_BlockAction & a_Copy )
|
|
|
|
{
|
2012-02-07 15:49:52 -05:00
|
|
|
m_PacketID = E_BLOCK_ACTION;
|
|
|
|
m_PosX = a_Copy.m_PosX;
|
|
|
|
m_PosY = a_Copy.m_PosY;
|
|
|
|
m_PosZ = a_Copy.m_PosZ;
|
|
|
|
m_Byte1 = a_Copy.m_Byte1;
|
|
|
|
m_Byte2 = a_Copy.m_Byte2;
|
2011-11-06 20:41:54 -05:00
|
|
|
}
|
|
|
|
|
2012-02-07 15:49:52 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void cPacket_BlockAction::Serialize(AString & a_Data) const
|
2011-11-06 20:41:54 -05:00
|
|
|
{
|
2012-02-07 15:49:52 -05:00
|
|
|
AppendByte (a_Data, m_PacketID);
|
|
|
|
AppendInteger(a_Data, m_PosX);
|
|
|
|
AppendShort (a_Data, m_PosY);
|
|
|
|
AppendInteger(a_Data, m_PosZ);
|
|
|
|
AppendByte (a_Data, m_Byte1);
|
|
|
|
AppendByte (a_Data, m_Byte2);
|
2011-11-06 20:41:54 -05:00
|
|
|
}
|
2012-02-07 15:49:52 -05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|