/// <summary> /// Raises the CreateNewGame()-method with the game image in a new replay manager. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void GameContinued(object sender, GameImageEventArgs e) { ReplayManager manager = new ReplayManager(); manager.Image = e.Image; CreateNewGame(e.Image.Settings, true, manager); currentGame.SetRoundImage(manager.SearchImageAtRound(manager.SearchLastRoundNumber()), false); currentGame.SetCorrectGoals(currentGame.Round); currentGame.SetCorrectGoalsCount(currentGame.Round); CurrentMpHandler.MultiplayerGame = currentGame; }
/// <summary> /// Loads the savegame at the path and opens the replay manager. /// </summary> /// <param name="path"></param> private void StartGameWithReplayManager(string path) { ReplayManager rm = new ReplayManager(path); rm.Load(); //creates a new game if the game image has been loaded if (rm.Image != null) { CreateNewGame(rm.Image.Settings, false, rm); replayManager = new ReplayManagerForm(rm.SearchLastRoundNumber()); replayManager.Round = currentGame.Round; currentGame.LeftSeconds = -2; InitializeManagerEvents(); } }