X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgame%2Fdirector.h;h=5aeddea932badd73b41d9f5aa56b2e4669c24a44;hb=12c863fc1bc5456a4b3aceacc88904d76bd1d8bb;hp=5f33aef0a0dcbe48fe744832a17fe54556a3ad84;hpb=aec84d90bbbbd7dce66cc90ed545322802b959f6;p=libs%2Fgame.git diff --git a/source/game/director.h b/source/game/director.h index 5f33aef..5aeddea 100644 --- a/source/game/director.h +++ b/source/game/director.h @@ -2,23 +2,31 @@ #define MSP_GAME_DIRECTOR_H_ #include +#include #include +#include #include #include +#include "accessguard.h" #include "eventbus.h" #include "events.h" #include "eventsource.h" +#include "mspgame_api.h" +#include "reflection.h" namespace Msp::Game { class Stage; -class Director +class MSPGAME_API Director { public: using EventSource = Game::EventSource; private: + std::optional access_guard; + Reflection::Reflector reflector; + DataFile::Collection &resources; EventBus event_bus; EventSource event_source; std::vector> stages; @@ -30,8 +38,10 @@ private: unsigned max_backlog_steps = 600; public: - Director(); + Director(DataFile::Collection &); + ~Director(); + DataFile::Collection &get_resources() const { return resources; } EventBus &get_event_bus() { return event_bus; } EventSource &get_event_source() { return event_source; } const std::vector> &get_stages() const { return stages; }