#include <memory>
#include <vector>
+#include <msp/datafile/collection.h>
#include <msp/time/timedelta.h>
#include <msp/time/timestamp.h>
#include "eventbus.h"
using EventSource = Game::EventSource<Events::StageCreated, Events::StageActivated, Events::StageDeactivated>;
private:
+ DataFile::Collection &resources;
EventBus event_bus;
EventSource event_source;
std::vector<std::unique_ptr<Stage>> stages;
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<std::unique_ptr<Stage>> &get_stages() const { return stages; }