public GameViewModel(Grid mainGrid, Grid leftGrid, Grid rightGrid, Grid topGrid, Grid botGrid) { GameModel = new GameModel(); _pixelGridView = new MonochromeGridView(mainGrid); BuilHintGrids(leftGrid, rightGrid, topGrid, botGrid); BuildGameFromImageCommand = new BuildGameFromImageCommand(GameModel, this); BuildGameRandomCommand = new BuildGameRandomCommand(GameModel, this); CrosswordRevealCommand = new CrosswordRevealedCommand(GameModel); InteractWithCellCommand = new InteractWithCellCommand(GameModel, mainGrid); LoadGameCommand = new LoadGameCommand(GameModel); SaveGameCommand = new SaveGameCommand(GameModel); SaveScetchCommand = new SaveScetchCommand(GameModel); }
private void Construct(CommandBus commandBus) { _commandBus = commandBus; _loadGameCommand = new LoadGameCommand(); }