diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2018-05-04 18:37:00 +0100 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2018-05-04 18:37:00 +0100 |
commit | 35937f1e76402d25fce180c0519bef6ce77769fe (patch) | |
tree | dfbae0532ec2ce4e706fb8ad8fbfe0b1a7ed862d /yage/entity/space.cpp | |
parent | 09535633913069f4653c270501059c38c2d09a99 (diff) | |
download | YAGE-35937f1e76402d25fce180c0519bef6ce77769fe.tar.gz YAGE-35937f1e76402d25fce180c0519bef6ce77769fe.zip |
Improving ECS and adding documentation.
Diffstat (limited to 'yage/entity/space.cpp')
-rw-r--r-- | yage/entity/space.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/yage/entity/space.cpp b/yage/entity/space.cpp index f3e343b5..24afda72 100644 --- a/yage/entity/space.cpp +++ b/yage/entity/space.cpp @@ -18,4 +18,11 @@ unsigned Space::createEntity() return em_.createEntity(); } +void Space::update() +{ + for (auto &system : systems_) { + system->update(); + } +} + } // namespace yage |