PartModuleUtilsSetupAction Method |
Applies a setup function on a KSP part module action.
Namespace:
KSPDev.PartUtils
Assembly:
KSPDev_Utils.2.5 (in KSPDev_Utils.2.5.dll) Version: 2.5 for KSP v1
Syntaxpublic static bool SetupAction(
PartModule partModule,
Action<KSPActionParam> actionFn,
Action<BaseAction> setupFn
)
Request Example
View SourceParameters
- partModule
- Type: (Default Namespace)PartModule
The module to find the action in. - actionFn
- Type: SystemActionKSPActionParam
The actions's method signature. - setupFn
- Type: SystemActionBaseAction
The function to apply to the action if the one is found.
Return Value
Type:
Booleantrue if the action was found and the function was applied,
false otherwise.
See Also