]> git.tdb.fi Git - libs/game.git/blobdiff - source/game/stage.cpp
Implement base support for buffered components
[libs/game.git] / source / game / stage.cpp
index bdd0ed676d27200fe87c9ee89e4231874b643f69..43446bd9d8e7af9ba6d03f5fd13d9a49d2e72d42 100644 (file)
@@ -8,7 +8,8 @@ using namespace std;
 
 namespace Msp::Game {
 
-Stage::Stage(DataFile::Collection &r):
+Stage::Stage(Reflection::Reflector &f, DataFile::Collection &r):
+       reflector(f),
        resources(r),
        event_source(event_bus),
        event_observer(event_bus),
@@ -59,7 +60,10 @@ void Stage::tick(Time::TimeDelta dt)
                AccessGuard::BlockForScope _block;;
 #endif
                for(const auto &s: systems)
+               {
+                       System::Activator act(*s);
                        s->tick(dt);
+               }
        }
 
        for(const auto &s: systems)