#pragma once

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

namespace td {
namespace protocol {

class SelectTeamPacket : public Packet {
private:
	game::TeamColor m_SelectedTeam;
public:
	SelectTeamPacket() {}
	SelectTeamPacket(game::TeamColor selectedTeam) : m_SelectedTeam(selectedTeam) {}
	virtual ~SelectTeamPacket() {}

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

	game::TeamColor GetSelectedTeam() const { return m_SelectedTeam; }

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

} // namespace protocol
} // namespace td
