Almost all packets' handling is now rewritten not to use cPacket descendants elsewhere than in cClientHandle.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@761 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -10,9 +10,9 @@
|
||||
cPacket_BlockAction::cPacket_BlockAction( const cPacket_BlockAction & a_Copy )
|
||||
{
|
||||
m_PacketID = E_BLOCK_ACTION;
|
||||
m_PosX = a_Copy.m_PosX;
|
||||
m_PosY = a_Copy.m_PosY;
|
||||
m_PosZ = a_Copy.m_PosZ;
|
||||
m_BlockX = a_Copy.m_BlockX;
|
||||
m_BlockY = a_Copy.m_BlockY;
|
||||
m_BlockZ = a_Copy.m_BlockZ;
|
||||
m_Byte1 = a_Copy.m_Byte1;
|
||||
m_Byte2 = a_Copy.m_Byte2;
|
||||
}
|
||||
@@ -24,9 +24,9 @@ cPacket_BlockAction::cPacket_BlockAction( const cPacket_BlockAction & a_Copy )
|
||||
void cPacket_BlockAction::Serialize(AString & a_Data) const
|
||||
{
|
||||
AppendByte (a_Data, m_PacketID);
|
||||
AppendInteger(a_Data, m_PosX);
|
||||
AppendShort (a_Data, m_PosY);
|
||||
AppendInteger(a_Data, m_PosZ);
|
||||
AppendInteger(a_Data, m_BlockX);
|
||||
AppendShort (a_Data, m_BlockY);
|
||||
AppendInteger(a_Data, m_BlockZ);
|
||||
AppendByte (a_Data, m_Byte1);
|
||||
AppendByte (a_Data, m_Byte2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user