private void LoadMap(string mapName) { Generator = XmlToFile.ReadFromXmlFile <WorldGeneration.Generator>(@"C:\VisualStudioProjects\DDRemake\DDRemakeProject\DDRemakeProject\" + mapName + ".xml"); Generator.Generate(); _v1 = new Engine(this); }
public void OnWindowClosing(object sender, CancelEventArgs e) { XmlToFile.WriteToXmlFile(@"C:\VisualStudioProjects\DDRemake\DDRemakeProject\DDRemakeProject\" + MapBasicInfo.Name + ".xml", Generator); // Handle closing logic, set e.Cancel as needed }