Difference between revisions of "API:KSPModule"

From Kerbal Space Program Wiki
Jump to: navigation, search
(copied verbatim description from Diazo with permission)
Line 1: Line 1:
'''KSPModule''' is an attribute with unknown use, possibly for classes extending [[API:PartModule|PartModule]]. Seems unnecessary to use this.
+
'''KSPModule''' is an unused class for listing names of [[API:PartModule|PartModules]], only used by a few stock modules. [[API:PartModule|PartModule]] is the current class you should be using instead.
  
 
<syntaxhighlight>
 
<syntaxhighlight>

Revision as of 15:41, 11 October 2015

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