public Deserializer(QXD_File _qxdFile, string _saveLocation) { saveLocation = _saveLocation; qxd_File = _qxdFile; WriteQuestData(); File.WriteAllBytes(saveLocation, bytes.ToArray()); }
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()); }
public Deserializer(QXD_File _qxdFile) { qxd_File = _qxdFile; WriteQuestData(); }