]> git.tdb.fi Git - libs/game.git/blobdiff - source/game/stage.cpp
Adjust component ticking
[libs/game.git] / source / game / stage.cpp
index a616d5a94da775ebd61da5171e9b4baf2435215d..8d781f28961fc77da688b640c9c579a44c9b4a28 100644 (file)
@@ -5,6 +5,7 @@
 namespace Msp::Game {
 
 Stage::Stage():
+       event_source(event_bus),
        root(std::make_unique<Root>(*this))
 { }
 
@@ -14,12 +15,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