public SaveConfig(string _savePath, Scene _scene) { sceneSave = new SceneSave(); scene = _scene; savePath = _savePath; sceneSave.osmPath = _scene.OSMPath; sceneSave.continent = _scene.continent; sceneSave.provider = _scene.provider; }
public LoadConfig(string saveFilePath) { var serializer = new XmlSerializer(typeof(SceneSave)); if (File.Exists(saveFilePath)) { var encoding = Encoding.GetEncoding("UTF-8"); using (var stream = new StreamReader(saveFilePath, encoding)) { sceneSave = serializer.Deserialize(stream) as SceneSave; } } }
public SaveConfig(string _savePath,Scene _scene) { sceneSave = new SceneSave(); scene = _scene; savePath = _savePath; sceneSave.osmPath = _scene.OSMPath; sceneSave.continent = _scene.continent; sceneSave.provider = _scene.provider; }