#pragma once

#include "GuiWidget.h"

#include <array>
#include "td/game/Mobs.h"

namespace td {
namespace gui {

class SummonMenu : public GuiWidget {
private:
	bool m_MenuOpened;
	int m_ImageWidth = 100;
	float m_Cooldown;
	float m_LastCooldown;
	static constexpr int m_MobTypeCount = static_cast<std::size_t>(td::game::MobType::MOB_COUNT);
	std::array<int, static_cast<std::size_t>(m_MobTypeCount)> m_Values;
public:
	SummonMenu(client::Client* client);

	void SetCooldown(float cooldown);

	virtual void Render();
private:
	void SetSummonMax(int valueIndex);
};

} // namespace gui  
} // namespace td
