add mob send cooldown

This commit is contained in:
2023-01-02 14:32:37 +01:00
parent 0b6d826eba
commit ed45995645
2 changed files with 21 additions and 3 deletions

View File

@@ -12,11 +12,15 @@ 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);