コード例 #1
0
ファイル: GamePlayScreen.cs プロジェクト: frank44/pewpew
 /// <summary>
 /// Create a new GameplayScreen object from the stats provided.
 /// </summary>
 public GameplayScreen(SaveManager saveManager = null)
     : this()
 {
     // If save manager does not exist, then new game was selected.
     if (saveManager == null)
     {
         this.saveManager = new SaveManager();
     }
     // Otherwise set the current save manager to the save state given.
     else
     {
         this.saveManager = saveManager;
     }
 }
コード例 #2
0
ファイル: MainMenuScreen.cs プロジェクト: frank44/pewpew
 /// <summary>
 /// Event handler for when the Continue menu entry is selected.
 /// </summary>
 void ContinueMenuEntrySelected(object sender, EventArgs e)
 {
     SaveManager saveManager = new SaveManager(true);
     if (saveManager.StatisticsManager != null)
     {
         if (Session.IsActive)
         {
             ExitScreen();
         }
         LoadingScreen.Load(ScreenManager, true, new GameplayScreen(saveManager));
     }
 }