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
18 float GetDeltaTime() const;
19
20 private:
22 float _elapsedTime = 0.0f;
23};
24} // namespace Engine::Scheduler
AScheduler(Core &core)
Constructor of the AScheduler class.
Definition AScheduler.cpp:8
Update scheduler that runs systems every time it is called.
Definition Update.hpp:8
float GetDeltaTime() const
Get the current delta time.
Definition Update.cpp:6
float _elapsedTime
The elapsed time since the last call to RunSystems.
Definition Update.hpp:22
AScheduler(Core &core)
Constructor of the AScheduler class.
Definition AScheduler.cpp:8
void RunSystems() override
Run the systems according to the scheduler policy.
Definition Update.cpp:8
Definition AScheduler.cpp:7