diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2018-04-30 23:00:50 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2018-04-30 23:00:50 +0100 |
commit | f338b4d15b57770d922e187b7a57d25fbf379b62 (patch) | |
tree | 68a9b14e9dd0dcec798bbce473f5cc8971d3be96 /yage/entity/engine.cpp | |
parent | 8745306ddc2db08d52caf1c3c456c0bc43a062b7 (diff) | |
download | YAGE-f338b4d15b57770d922e187b7a57d25fbf379b62.tar.gz YAGE-f338b4d15b57770d922e187b7a57d25fbf379b62.zip |
Adding support for entity component systems.
Diffstat (limited to 'yage/entity/engine.cpp')
-rw-r--r-- | yage/entity/engine.cpp | 11 |
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() |