Esempio n. 1
0
    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);
    }
Esempio n. 2
0
        static void Main(string[] args)
        {
            Game game = new InheritorGame();

            game.StartGame();
        }