예제 #1
0
 private void LoadMap(string mapName)
 {
     Generator = XmlToFile.ReadFromXmlFile <WorldGeneration.Generator>(@"C:\VisualStudioProjects\DDRemake\DDRemakeProject\DDRemakeProject\" + mapName + ".xml");
     Generator.Generate();
     _v1 = new Engine(this);
 }
예제 #2
0
 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
 }