]> git.tdb.fi Git - libs/game.git/blobdiff - source/game/stage.cpp
Add resource container references to Director and Stage
[libs/game.git] / source / game / stage.cpp
index 73eb9a55f7299542cb08cf8c95b44083d7ee8fc2..779be6e02eeefa39c379d200b7dd5056406b29ea 100644 (file)
@@ -4,7 +4,8 @@
 
 namespace Msp::Game {
 
-Stage::Stage():
+Stage::Stage(DataFile::Collection &r):
+       resources(r),
        event_source(event_bus),
        root(std::make_unique<Root>(*this))
 { }
@@ -15,12 +16,8 @@ Stage::~Stage()
 
 void Stage::tick(Time::TimeDelta dt)
 {
-       for(const auto &s: systems)
-               s->pre_tick();
        for(const auto &s: systems)
                s->tick(dt);
-       for(const auto &s: systems)
-               s->post_tick();
 }
 
 } // namespace Msp::Game