Files
engine/src/scheduler.cpp
T
2025-10-29 15:43:19 -04:00

13 lines
286 B
C++

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