Difference between revisions of "API:KSPModule"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Created page with "An attribute with unknown use, possibly for classes extending PartModule. Seems unnecessary to use this. <syntaxhighlight>public class KSPModule : Attribut...")
 
({{Orphan}})
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
An attribute with unknown use, possibly for classes extending [[API:PartModule|PartModule]]. Seems unnecessary to use this.
+
{{Orphan}}
 +
'''KSPModule''' is a mostly unused attribute class for listing names of [[API:PartModule|PartModules]]. Do not use KSPModule; [[API:PartModule|PartModule]] gives the field [[API:PartModule|PartModule]].moduleName to use instead.
  
<syntaxhighlight>public class KSPModule : Attribute
+
<syntaxhighlight>
 +
// 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 string guiName;
  
 
     public KSPModule(string guiName);
 
     public KSPModule(string guiName);
}</syntaxhighlight>
+
}
 +
</syntaxhighlight>
 +
 
 +
[[Category:Community API Documentation]]

Latest revision as of 17:13, 22 January 2020

This page is an orphan, as no other articles link to it.


KSPModule is a mostly unused attribute class for listing names of PartModules. Do not use KSPModule; PartModule gives the field PartModule.moduleName to use 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);
}