public bool LoadGame() { String fileName = "SavedGame.xml"; XmlSerializer writer = new XmlSerializer(typeof(InheritorGame)); StreamReader stream = new StreamReader(fileName); InheritorGame loadedGame = (InheritorGame)writer.Deserialize(stream); stream.Close(); Console.WriteLine("Loaded!"); //loadedGame.SetupRooms(); loadedGame.InputLoop(); return(true); }
static void Main(string[] args) { Game game = new InheritorGame(); game.StartGame(); }