#include "td/protocol/packets/PlayerBuyItemPacket.h"

namespace td {
namespace protocol {

DataBuffer PlayerBuyItemPacket::Serialize(bool packetID) const {
	DataBuffer data;

	WritePacketID(data, packetID);
	data << m_ItemType << m_Count;
	return data;
}

void PlayerBuyItemPacket::Deserialize(DataBuffer& data) {
	data >> m_ItemType >> m_Count;
}

} // namespace protocol
} // namespace td
