/// <summary> /// Creates the tsumego view model /// </summary> public TsumegoViewModel(IQuestsManager questsManager, IGameSettings gameSettings, ITsumegoProblemsLoader problemsLoader) { _questsManager = questsManager; _gameSettings = gameSettings; _problemsLoader = problemsLoader; var problem = Mvx.Resolve <TsumegoProblem>(); Rectangle rectangle = problem.GetBoundingBoard(); BoardViewModel = new BoardViewModel(rectangle); BoardViewModel.BoardTapped += BoardViewModel_BoardTapped; LoadProblem(problem); }
public TsumegoMenuViewModel(ITsumegoProblemsLoader tsumegoProlemsLoader) { _tsumegoProlemsLoader = tsumegoProlemsLoader; }