20 lines
391 B
C++
20 lines
391 B
C++
#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
|