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

namespace td {
namespace protocol {

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

	WritePacketID(data, packetID);
	data << m_TowerX << m_TowerY << m_TowerType;
	return data;
}

void PlaceTowerPacket::Deserialize(DataBuffer& data) {
	data >> m_TowerX >> m_TowerY >> m_TowerType;
}

} // namespace protocol
} // namespace td
