X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgame%2Fdirector.h;h=05be9f7172c653bd04a9a01f72920a42e123b665;hb=41fa4483d8f017175800992d8fdacd7ee312d0c3;hp=9d221b0678345a8def4c06b5936c3bee95ebe865;hpb=f90804b7a1042a1266cbe3075631e4fcc18b9a8a;p=libs%2Fgame.git diff --git a/source/game/director.h b/source/game/director.h index 9d221b0..05be9f7 100644 --- a/source/game/director.h +++ b/source/game/director.h @@ -3,6 +3,7 @@ #include #include +#include #include #include #include "eventbus.h" @@ -19,6 +20,7 @@ public: using EventSource = Game::EventSource; private: + DataFile::Collection &resources; EventBus event_bus; EventSource event_source; std::vector> stages; @@ -30,9 +32,16 @@ private: unsigned max_backlog_steps = 600; public: - Director(); + Director(DataFile::Collection &); + + 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; } + Stage &create_stage(); void activate_stage(Stage &); + Stage *get_active_stage() const { return active_stage; } void tick(); };