Difference between revisions of "API:KSPModule"

From Kerbal Space Program Wiki
Jump to: navigation, search
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 attribute with unknown use, possibly for classes extending [[API:PartModule|PartModule]]. Seems unnecessary to use this.
  
<syntaxhighlight>public class KSPModule : Attribute
+
<syntaxhighlight>
 +
// From Kerbal Space Program\KSP_Data\Managed\Assembly-CSharp.dll
 +
 
 +
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
 +
public class KSPModule : Attribute
 
{
 
{
 
     public string guiName;
 
     public string guiName;

Revision as of 15:18, 11 October 2015

KSPModule is an attribute with unknown use, possibly for classes extending PartModule. Seems unnecessary to use this.

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