API:KSPModule

From Kerbal Space Program Wiki
Revision as of 15:49, 11 October 2015 by Glyph (talk | contribs)
Jump to: navigation, search

KSPModule is a mostly unused class for listing names of PartModules. Do not use KSPModule, instead simply extend PartModule and use PartModule.moduleName to get the name.

// 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);
}