aboutsummaryrefslogtreecommitdiffstats
path: root/yage/entity/engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'yage/entity/engine.cpp')
-rw-r--r--yage/entity/engine.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/yage/entity/engine.cpp b/yage/entity/engine.cpp
index 919cff7c..503dc919 100644
--- a/yage/entity/engine.cpp
+++ b/yage/entity/engine.cpp
@@ -8,6 +8,9 @@
#include "engine.h"
+#include "space.h"
+#include "entity.h"
+
namespace yage
{
@@ -29,6 +32,14 @@ void Engine::mainLoop()
void Engine::update()
{
+ for(auto &space : spaces_) {
+
+ }
+}
+
+void Engine::addSpace(std::unique_ptr<Space> space)
+{
+ spaces_.push_back(std::move(space));
}
Engine &Engine::instance()