2012-02-07 15:49:52 -05:00
|
|
|
|
2011-11-06 20:41:54 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "cPacket.h"
|
2012-01-27 09:04:28 -05:00
|
|
|
|
2011-11-06 20:41:54 -05:00
|
|
|
|
2012-08-19 15:42:32 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class cPacket_BlockAction :
|
|
|
|
public cPacket
|
2011-11-06 20:41:54 -05:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
cPacket_BlockAction()
|
2012-08-19 15:42:32 -04:00
|
|
|
: m_BlockX( 0 )
|
|
|
|
, m_BlockY( 0 )
|
|
|
|
, m_BlockZ( 0 )
|
2011-11-06 20:41:54 -05:00
|
|
|
, m_Byte1( 0 )
|
|
|
|
, m_Byte2( 0 )
|
2012-08-19 15:42:32 -04:00
|
|
|
{
|
|
|
|
m_PacketID = E_BLOCK_ACTION;
|
|
|
|
}
|
|
|
|
|
2011-11-06 20:41:54 -05:00
|
|
|
cPacket_BlockAction( const cPacket_BlockAction & a_Copy );
|
2012-08-19 15:42:32 -04:00
|
|
|
virtual cPacket * Clone() const { return new cPacket_BlockAction(*this); }
|
2011-11-06 20:41:54 -05:00
|
|
|
|
2012-02-07 15:49:52 -05:00
|
|
|
virtual void Serialize(AString & a_Data) const override;
|
2011-11-06 20:41:54 -05:00
|
|
|
|
2012-08-19 15:42:32 -04:00
|
|
|
int m_BlockX;
|
|
|
|
short m_BlockY;
|
|
|
|
int m_BlockZ;
|
2012-02-07 15:49:52 -05:00
|
|
|
char m_Byte1; // Varies
|
|
|
|
char m_Byte2; // Varies
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|