Click or drag to resize

PartModuleUtilsSetupAction Method

Applies a setup function on a KSP part module action.

Namespace:  KSPDev.PartUtils
Assembly:  KSPDev_Utils.1.1 (in KSPDev_Utils.1.1.dll) Version: 1.1 for KSP v1.6+
Syntax
C#
public static bool SetupAction(
	PartModule partModule,
	Action<KSPActionParam> actionFn,
	Action<BaseAction> setupFn
)
Request Example View Source

Parameters

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: Boolean
true if the action was found and the function was applied, false otherwise.
See Also