Click or drag to resize

PartModuleUtilsWithdrawEvent Method

Removes an event that was previously injected.

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 void WithdrawEvent(
	PartModule srcModule,
	Action srcEventFn,
	PartModule tgtModule
)
Request Example View Source

Parameters

srcModule
Type: (Default Namespace)PartModule
The module that originally owns the event.
srcEventFn
Type: SystemAction
The event signature in the owner's module.
tgtModule
Type: (Default Namespace)PartModule
The part to withdraw the event from.
Remarks
It's ok if the event being removed doesn't exist on the part. The call will just silently return.
See Also