Difference between revisions of "API:KSPModule"
From Kerbal Space Program Wiki
m (→top) |
m (Reverted edits by Rocketing Rudolph (talk) to last revision by Glyph) |
||
Line 1: | Line 1: | ||
+ | '''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> | ||
+ | // 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); | ||
+ | } | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | [[Category:Community API Documentation]] |
Revision as of 18:49, 17 March 2017
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); }