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;
|
2012-08-19 15:42:32 -04:00
|
|
|
m_BlockX = a_Copy.m_BlockX;
|
|
|
|
m_BlockY = a_Copy.m_BlockY;
|
|
|
|
m_BlockZ = a_Copy.m_BlockZ;
|
2012-02-07 15:49:52 -05:00
|
|
|
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);
|
2012-08-19 15:42:32 -04:00
|
|
|
AppendInteger(a_Data, m_BlockX);
|
|
|
|
AppendShort (a_Data, m_BlockY);
|
|
|
|
AppendInteger(a_Data, m_BlockZ);
|
2012-02-07 15:49:52 -05:00
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|