#pragma once

#include "td/protocol/Protocol.h"
#include "td/game/BaseGame.h"

namespace td {
namespace protocol {

class RemoveTowerPacket : public Packet {
private:
	game::TowerID m_TowerID;
public:
	RemoveTowerPacket() {}
	RemoveTowerPacket(game::TowerID id) : m_TowerID(id) {}
	virtual ~RemoveTowerPacket() {}

	virtual DataBuffer Serialize(bool packetID = true) const;
	virtual void Deserialize(DataBuffer& data);
	virtual void Dispatch(PacketHandler* handler) const;

	game::TowerID GetTowerID() const { return m_TowerID; }

	virtual PacketType GetType() const { return PacketType::RemoveTower; }
};

} // namespace protocol
} // namespace td
