X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgame%2Fstage.h;h=283dc81c0747776875cfed9d0048aa720b1bfbba;hb=bdcd6a6268dec57ad352e30d86734b28a885a017;hp=a046947f57ad7d0f49e43621f003ac739a4d5713;hpb=fce6e7846814e54de9d38000d2f5e2295ee2119e;p=libs%2Fgame.git diff --git a/source/game/stage.h b/source/game/stage.h index a046947..283dc81 100644 --- a/source/game/stage.h +++ b/source/game/stage.h @@ -8,6 +8,7 @@ #include "events.h" #include "eventsource.h" #include "handle.h" +#include "reflection.h" namespace Msp::Game { @@ -22,6 +23,7 @@ public: Events::ComponentCreated, Events::ComponentDestroyed, Events::CameraChanged>; private: + Reflection::Reflector &reflector; DataFile::Collection &resources; PoolPool pools; EventBus event_bus; @@ -34,9 +36,10 @@ private: Handle active_camera; public: - Stage(DataFile::Collection &); + Stage(Reflection::Reflector &, DataFile::Collection &); ~Stage(); + Reflection::Reflector &get_reflector() const { return reflector; } DataFile::Collection &get_resources() const { return resources; } PoolPool &get_pools() { return pools; } EventBus &get_event_bus() { return event_bus; }