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);
        }
예제 #2
0
 public ChallengeSaveData(IChallenge challenge, bool isCompleted)
 {
     this.challengeName        = challenge.GetName();
     this.isChallengeCompleted = isCompleted;
 }