Difference between revisions of "API:KSPModule"

From Kerbal Space Program Wiki
Jump to: navigation, search
Line 2: Line 2:
  
 
<syntaxhighlight>
 
<syntaxhighlight>
// From Kerbal Space Program\KSP_Data\Managed\Assembly-CSharp.dll
+
// From KSP 1.04 "Kerbal Space Program\KSP_Data\Managed\Assembly-CSharp.dll"
  
 
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
 
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]

Revision as of 15:19, 11 October 2015

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

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