Engine²
Open-source game engine written in C++.
Loading...
Searching...
No Matches
Update.hpp
Go to the documentation of this file.
1#pragma once
2
4
5namespace Engine::Scheduler {
8class Update : public AScheduler {
9 public:
12
14 void RunSystems() override;
15
19 inline float GetDeltaTime() const { return _elapsedTime; }
20
21 private:
23 float _elapsedTime = 0.0f;
24};
25} // namespace Engine::Scheduler
AScheduler(Core &core)
Constructor of the AScheduler class.
Definition AScheduler.hpp:20
Update scheduler that runs systems every time it is called.
Definition Update.hpp:8
float GetDeltaTime() const
Get the current delta time.
Definition Update.hpp:19
float _elapsedTime
The elapsed time since the last call to RunSystems.
Definition Update.hpp:23
AScheduler(Core &core)
Constructor of the AScheduler class.
Definition AScheduler.hpp:20
void RunSystems() override
Run the systems according to the scheduler policy.
Definition Update.cpp:6
Definition AScheduler.cpp:7