14 #include "../core/window.h"
15 #include "../util/noncopyable.h"
44 void addSpace(std::unique_ptr<Space> space);
55 std::vector<std::unique_ptr<Space>> spaces_;
void addSpace(std::unique_ptr< Space > space)
Add spaces to the engine.
Definition: engine.cpp:49
static Engine & instance()
Returns the instance of the engine, as there is only one instance of the engine.
Definition: engine.cpp:54
Main engine class that contains a systems, the main loop and the update function that updates all the...
Definition: engine.h:29
Definition: noncopyable.h:15
void update()
Updates the systems.
Definition: engine.cpp:42
void init()
Initialize window and other aspects of the engine.
Definition: engine.cpp:24
void mainLoop()
Main game loop of the engine.
Definition: engine.cpp:30
~Engine()
Definition: engine.cpp:19