13 lines
286 B
C++
13 lines
286 B
C++
// timer for player cooldown
|
|
|
|
#include "scheduler.hpp"
|
|
#include <chrono>
|
|
#include <thread>
|
|
void Timer::update_timers(bool &running, Times ×) {
|
|
while (running) {
|
|
std::this_thread::sleep_for(std::chrono::seconds(1));
|
|
times.dash_cooldown--;
|
|
times.level_switch_cooldown--;
|
|
}
|
|
}
|