Beispiel #1
0
    // ENCODED
    // DESCRYPTED
    public SaveNode ReadSave(string NewPath)
    {
        string Path = NewPath;

        if (File.Exists(Path) == false)
        {
            return(null);
        }
        BaseContainer Reader = new BaseContainer();

        var Serializer = new XmlSerializer(typeof(SaveHandler));

        XmlTextReader stream = Reader.ReadFile(Serializer, Path);

        SaveHandler Cont = new SaveHandler();

        Cont = (SaveHandler)Serializer.Deserialize(stream);
        stream.Close();
        Reader.CloseFile();

        Cont.CloseFile();
        return(Cont._SaveGame);
    }