9 #ifndef YAGE_CORE_ENGINE_H
10 #define YAGE_CORE_ENGINE_H
12 #include "../core/window.h"
43 std::vector<System *> systems_;
void addSystem(System *system)
Adds a system to the engine.
Definition: engine.cpp:43
static Engine & instance()
Returns the instance of the engine, as there is only one instance of the engine.
Definition: engine.cpp:48
System interface for the different systems in the engine.
Definition: system.h:18
Main engine class that contains a systems, the main loop and the update function that updates all the...
Definition: engine.h:22
void update()
Updates the systems.
Definition: engine.cpp:34
void init()
Initialize window and other aspects of the engine.
Definition: engine.cpp:14
void mainLoop()
Main game loop of the engine.
Definition: engine.cpp:23