Files
cuberite-2a/source/packets/cPacket_WindowClose.cpp
T

30 lines
461 B
C++
Raw Normal View History

#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
2011-10-03 18:41:19 +00:00
#include "cPacket_WindowClose.h"
int cPacket_WindowClose::Parse(const char * a_Data, int a_Size)
2011-10-03 18:41:19 +00:00
{
int TotalBytes = 0;
HANDLE_PACKET_READ(ReadByte, m_Close, TotalBytes);
return TotalBytes;
}
2011-10-03 18:41:19 +00:00
void cPacket_WindowClose::Serialize(AString & a_Data) const
2011-10-03 18:41:19 +00:00
{
AppendByte(a_Data, m_PacketID);
AppendByte(a_Data, m_Close);
}
2011-10-03 18:41:19 +00:00