コード例 #1
0
 internal static ShipTemplate LoadSubAssembly(string subassemblyName)
 {
     if (ShipConstruction.SubassemblyExists(subassemblyName))
     {
         ConfigNode   node        = ConfigNode.Load(vehiclesPath + "/" + subassemblyName + ".craft");
         ShipTemplate subassembly = new ShipTemplate();
         subassembly.LoadShip(node);
         return(subassembly);
     }
     else
     {
         klvGUI.GUIUtilities.Log("Could not find subassembly file: " + subassemblyName);
         return(null);
     }
 }