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

namespace td {
namespace protocol {

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

	WritePacketID(data, packetID);
	data << m_TowerID << m_TowerLevel;
	return data;
}

void UpgradeTowerPacket::Deserialize(DataBuffer& data) {
	data >> m_TowerID >> m_TowerLevel;
}

} // namespace protocol
} // namespace td
