Exemplo n.º 1
0
 public Deserializer(QXD_File _qxdFile, string _saveLocation)
 {
     saveLocation = _saveLocation;
     qxd_File     = _qxdFile;
     WriteQuestData();
     File.WriteAllBytes(saveLocation, bytes.ToArray());
 }
Exemplo n.º 2
0
        public Deserializer(string location)
        {
            saveLocation = String.Format("{0}/{1}", Path.GetDirectoryName(location), Path.GetFileNameWithoutExtension(location));
            YAXSerializer serializer = new YAXSerializer(typeof(QXD_File), YAXSerializationOptions.DontSerializeNullObjects);

            qxd_File = (QXD_File)serializer.DeserializeFromFile(location);
            Validation();
            WriteQuestData();
            File.WriteAllBytes(saveLocation, bytes.ToArray());
        }
Exemplo n.º 3
0
 public Deserializer(QXD_File _qxdFile)
 {
     qxd_File = _qxdFile;
     WriteQuestData();
 }