]> git.tdb.fi Git - libs/game.git/blobdiff - source/game/director.h
Add unit tests for the event bus
[libs/game.git] / source / game / director.h
index de19185849e121e50e7c112ce59aa68a50e46fa7..775d7d2915941a2edb8247a47cddaaceca6277b1 100644 (file)
@@ -2,13 +2,16 @@
 #define MSP_GAME_DIRECTOR_H_
 
 #include <memory>
+#include <optional>
 #include <vector>
 #include <msp/datafile/collection.h>
 #include <msp/time/timedelta.h>
 #include <msp/time/timestamp.h>
+#include "accessguard.h"
 #include "eventbus.h"
 #include "events.h"
 #include "eventsource.h"
+#include "reflection.h"
 
 namespace Msp::Game {
 
@@ -20,6 +23,8 @@ public:
        using EventSource = Game::EventSource<Events::StageCreated, Events::StageActivated, Events::StageDeactivated>;
 
 private:
+       std::optional<AccessGuard> access_guard;
+       Reflection::Reflector reflector;
        DataFile::Collection &resources;
        EventBus event_bus;
        EventSource event_source;