Example #1
0
        /// <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);
        }
Example #2
0
 public TsumegoMenuViewModel(ITsumegoProblemsLoader tsumegoProlemsLoader)
 {
     _tsumegoProlemsLoader = tsumegoProlemsLoader;
 }