API:KSPModule

From Kerbal Space Program Wiki
Revision as of 15:41, 11 October 2015 by Glyph (talk | contribs) (copied verbatim description from Diazo with permission)
Jump to: navigation, search

KSPModule is an unused class for listing names of PartModules, only used by a few stock modules. PartModule is the current class you should be using instead.

// From KSP 1.04 "Kerbal Space Program\KSP_Data\Managed\Assembly-CSharp.dll"
 
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
public class KSPModule : Attribute
{
    public string guiName;
 
    public KSPModule(string guiName);
}