]> git.tdb.fi Git - libs/game.git/blobdiff - source/game/stage.h
Add resource container references to Director and Stage
[libs/game.git] / source / game / stage.h
index d7793e22f60ec21fd52acab1b8af9aafbe2f4d94..6af3b60a62596b97d61f833baa0c937c395b063a 100644 (file)
@@ -2,6 +2,7 @@
 #define MSP_GAME_STAGE_H_
 
 #include <memory>
+#include <msp/datafile/collection.h>
 #include <msp/time/timedelta.h>
 #include "eventbus.h"
 #include "events.h"
@@ -20,6 +21,7 @@ public:
                Events::ComponentCreated, Events::ComponentDestroyed>;
 
 private:
+       DataFile::Collection &resources;
        PoolPool pools;
        EventBus event_bus;
        EventSource event_source;
@@ -29,9 +31,10 @@ private:
        std::vector<std::unique_ptr<System>> systems;
 
 public:
-       Stage();
+       Stage(DataFile::Collection &);
        ~Stage();
 
+       DataFile::Collection &get_resources() const { return resources; }
        PoolPool &get_pools() { return pools; }
        EventBus &get_event_bus() { return event_bus; }
        EventSource &get_event_source() { return event_source; }