void ChallengeEntrySelected(object sender, PlayerIndexEventArgs e) { string challengeName = ((MenuEntry)sender).Text; currentlySelectedChallenge = ChallengeManager.Instance.GetChallengeByName(challengeName); string message = "Challenge - " + currentlySelectedChallenge.GetName() + "\n\n" + currentlySelectedChallenge.GetDescription(); ChallengeModeMessageBoxScreen confirmExitMessageBox = new ChallengeModeMessageBoxScreen(currentlySelectedChallenge.GetName(), currentlySelectedChallenge.GetDescription(), false); confirmExitMessageBox.Accepted += ConfirmChallengeSelected; ScreenManager.AddScreen(confirmExitMessageBox, ControllingPlayer); }
public ChallengeSaveData(IChallenge challenge, bool isCompleted) { this.challengeName = challenge.GetName(); this.isChallengeCompleted = isCompleted; }