#include "stage.h"
+#include "accessguard.h"
#include "camera.h"
#include "root.h"
#include "system.h"
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),
void Stage::tick(Time::TimeDelta dt)
{
- for(const auto &s: systems)
- s->tick(dt);
+ {
+#ifdef DEBUG
+ AccessGuard::BlockForScope _block;;
+#endif
+ for(const auto &s: systems)
+ s->tick(dt);
+ }
+
for(const auto &s: systems)
s->deferred_tick();
}