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;
        }
        public static void SaveShipModuleToXmlForTools(string filename, ShipModule ss)
        {
            XmlDocument xmlDocument = new XmlDocument();
            XmlElement  element     = xmlDocument.CreateElement("ShipModule");

            ss.AttachToXmlNode(ref element);
            xmlDocument.AppendChild((XmlNode)element);
            xmlDocument.Save(filename);
        }