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

namespace td {
namespace protocol {

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

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

void WorldAddTowerPacket::Deserialize(DataBuffer& data) {
	data >> m_TowerID >> m_TowerX >> m_TowerY >> m_TowerType >> m_Builder;
}

} // namespace protocol
} // namespace td
