public static MBWorldMap ParseXml(string mapXmlFile) { MBWorldMap worldMap = new MBWorldMap(); Mods.ModXmlLoader loader = new Mods.ModXmlLoader(mapXmlFile); loader.Load <MBWorldMap>(out worldMap); return(worldMap); }
public void SaveAsXml(string path) { Mods.ModXmlLoader loader = new Mods.ModXmlLoader(path); loader.Save <MBWorldMap>(this); }