PartModuleUtilsWithdrawEvent Method |
Removes an event that was previously injected.
Namespace:
KSPDev.PartUtils
Assembly:
KSPDev_Utils.2.5 (in KSPDev_Utils.2.5.dll) Version: 2.5 for KSP v1
Syntaxpublic static void WithdrawEvent(
PartModule srcModule,
Action srcEventFn,
PartModule tgtModule
)
Request Example
View SourceParameters
- 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