2012-08-18 05:56:28 -04:00
|
|
|
|
2012-06-14 09:06:06 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "cPacket.h"
|
|
|
|
|
|
|
|
|
2012-08-18 05:56:28 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class cPacket_BlockDig :
|
|
|
|
public cPacket
|
|
|
|
{
|
2012-06-14 09:06:06 -04:00
|
|
|
public:
|
2012-08-18 05:56:28 -04:00
|
|
|
cPacket_BlockDig()
|
2012-06-14 09:06:06 -04:00
|
|
|
: m_Status( 0 )
|
|
|
|
, m_PosX( 0 )
|
|
|
|
, m_PosY( 0 )
|
|
|
|
, m_PosZ( 0 )
|
|
|
|
, m_Direction( 0 )
|
2012-08-18 05:56:28 -04:00
|
|
|
{
|
|
|
|
m_PacketID = E_BLOCK_DIG;
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual cPacket* Clone() const { return new cPacket_BlockDig(*this); }
|
2012-06-14 09:06:06 -04:00
|
|
|
|
2012-08-17 06:18:07 -04:00
|
|
|
virtual int Parse(cByteBuffer & a_Buffer) override;
|
2012-06-14 09:06:06 -04:00
|
|
|
virtual void Serialize(AString & a_Data) const override;
|
|
|
|
|
2012-08-18 05:56:28 -04:00
|
|
|
char m_Status;
|
|
|
|
int m_PosX;
|
|
|
|
char m_PosY;
|
|
|
|
int m_PosZ;
|
|
|
|
char m_Direction;
|
|
|
|
};
|
2012-06-14 09:06:06 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|