Engine²
Open-source game engine written in C++.
Loading...
Searching...
No Matches
Startup.hpp
Go to the documentation of this file.
1#pragma once
2
4
5namespace Engine::Scheduler {
8class Startup : public AScheduler {
9 public:
14 explicit Startup(Core &core, const std::function<void()> &callback) : AScheduler(core), _callback(callback) {}
15
17 void RunSystems() override;
18
19 private:
21 std::function<void()> _callback;
22};
23} // namespace Engine::Scheduler
The core is the place where all the data of the engine is stored. It contains the registry (entities)...
Definition Core.hpp:33
AScheduler(Core &core)
Constructor of the AScheduler class.
Definition AScheduler.hpp:20
std::function< void()> _callback
A callback function that will be called after all systems have been run.
Definition Startup.hpp:21
void RunSystems() override
Run the systems according to the scheduler policy.
Definition Startup.cpp:5
Startup(Core &core, const std::function< void()> &callback)
Constructor for the Startup scheduler.
Definition Startup.hpp:14
Definition AScheduler.cpp:7