13 #include "../core/window.h"
14 #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:48
static Engine & instance()
Returns the instance of the engine, as there is only one instance of the engine.
Definition: engine.cpp:53
Main engine class that contains a systems, the main loop and the update function that updates all the...
Definition: engine.h:28
Definition: noncopyable.h:6
void update()
Updates the systems.
Definition: engine.cpp:41
void init()
Initialize window and other aspects of the engine.
Definition: engine.cpp:23
void mainLoop()
Main game loop of the engine.
Definition: engine.cpp:29
~Engine()
Definition: engine.cpp:18