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

24 lines
472 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_InventorySlot.h"
2011-12-21 20:42:34 +00:00
#include "cPacket_WholeInventory.h"
#include "cPacket_ItemData.h"
2011-10-03 18:41:19 +00:00
void cPacket_InventorySlot::Serialize(AString & a_Data) const
2011-10-03 18:41:19 +00:00
{
AppendByte (a_Data, m_PacketID);
AppendByte (a_Data, m_WindowID);
AppendShort(a_Data, m_SlotNum);
2011-12-21 20:42:34 +00:00
cPacket_ItemData::AppendItem(a_Data, m_ItemID, m_ItemCount, m_ItemUses);
}
2011-12-21 20:42:34 +00:00
2011-10-03 18:41:19 +00:00
2011-12-21 20:42:34 +00:00