This commit is contained in:
2023-11-02 17:56:18 -05:00
parent b4c7953c93
commit 5547c7c236
4 changed files with 30 additions and 52 deletions

View File

@ -9,11 +9,6 @@
#include "state/StateEvent.hpp"
namespace Dawn {
struct IntervalProviderData {
float_t interval;
float_t time;
};
class ITimeManager {
public:
float_t time = 0.0f;
@ -22,7 +17,6 @@ namespace Dawn {
bool_t isPaused = false;
StateProviderSet<float_t> timeoutProvider;
StateProviderSet<struct IntervalProviderData> intervalProvider;
StateEvent<> eventTimePaused;
StateEvent<> eventTimeResumed;
@ -36,7 +30,7 @@ namespace Dawn {
*
* @param delta Time in seconds to tick the instance by.
*/
void update(float_t delta);
void update(const float_t delta);
/**
* Pauses the game.