public GameDatabase(ref Action onUpdate, GameObject ui, ICoreMessager coreMessager, Dictionary <KeyPositionType, KeyPosition> keyPositions) { this.KeyPositions = keyPositions; UserManager = new UserManager(); Aggregates = new Aggregates(ref onUpdate, coreMessager); Commands = new Commands(Aggregates, UserManager); GameViewController = new GameViewController(ui); }
public Aggregates(ref Action OnUpdate, ICoreMessager coreMessager) { DebugAggregate = new DebugAggregate(ref OnUpdate, coreMessager); CharacterSelectionAggregate = new CharacterSelectionAggregate(ref OnUpdate); CharacterAggregate = new CharacterAggregate(ref OnUpdate); }
public DebugAggregate(ref Action onUpdate, ICoreMessager coreMessager) : base(ref onUpdate) { this.coreMessager = coreMessager; }