コード例 #1
0
ファイル: GameLib.cs プロジェクト: neydareh/TextAdventure
 private static void SavePlayer(Player player)
 {
     Console.WriteLine("Do you want to save the current player");
     if (Console.ReadLine().ToLower() == "yes")
     {
         Console.WriteLine("Saving Player");
         Game.SavePlayer(player);
     }
     Console.WriteLine("Do you want to view the saved player");
     if (Console.ReadLine().ToLower() == "yes")
     {
         Console.WriteLine("####################################");
         Game.DisplayPlayerStats(Game.players);
     }
     Console.WriteLine("Do you want to restart");
     if (Console.ReadLine().ToLower() == "yes")
     {
         StartGame();
         Console.Clear();
     }
 }