1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

Timer enabler

This commit is contained in:
nordsoft
2023-08-28 04:40:35 +04:00
parent 2c61d1b23f
commit 15f57a0817
2 changed files with 31 additions and 22 deletions

View File

@@ -27,6 +27,7 @@ class TurnTimerHandler
const int turnTimePropagateFrequencyCrit = 1000;
const int turnTimePropagateThreshold = 3000;
std::map<PlayerColor, TurnTimerInfo> timers;
std::map<PlayerColor, bool> timerEnabled;
std::recursive_mutex mx;
public:
@@ -38,4 +39,5 @@ public:
void onBattleStart();
void onBattleNextStack(const CStack & stack);
void onBattleLoop(int waitTime);
void setTimerEnabled(PlayerColor player, bool enabled);
};