public static void LoadShipModuleFromXmlForTools(string filename, ref ShipModule sm) { XmlDocument xmlDocument = new XmlDocument(); xmlDocument.Load(filename); sm.LoadFromXmlNode(xmlDocument["ShipModule"]); sm.SavePath = filename; }
public static void LoadShipModuleFromXml(string filename, ref ShipModule sm) { XmlDocument document = new XmlDocument(); document.Load(ScriptHost.FileSystem, filename); sm.LoadFromXmlNode(document["ShipModule"]); sm.SavePath = filename; }