//Constructor public BattlePage(CharactersViewModel Data) { charactersViewModel = Data; InitializeComponent(); monsterViewModel = MonstersViewModel.Instance; // _viewModel = GameEngineViewModel.Instance; _viewModel = new GameEngineViewModel(); _viewModel.gameOver = false; _viewModel.gameEngine.ClearDialogCache(); _viewModel.magicRevive = true; _viewModel.BattleScore.AutoBattle = false; _viewModel.gameEngine.currentRound = 1; _viewModel.GenerateNewMonsters(); _viewModel.MoveFirstCreature(charactersViewModel); _viewModel.gameEngine.ConsoleDialog1 = ""; BindingContext = _viewModel; }
public OpeningScreen() { InitializeComponent(); _viewModel = new GameEngineViewModel(); }