C# Class RemoteTech.FlightComputer.UIPartActionMenuPatcher.WrappedEvent

Inheritance: BaseEvent
Show file Open project: RemoteTechnologiesGroup/RemoteTech

Public Methods

Method Description
InvokeOriginalEvent ( ) : void
KspEventFromBaseEvent ( BaseEvent baseEvent ) : KSPEvent

Given a BaseEvent, obtain a KSPEvent. Note : This is used in UIPartActionMenuPatcher.Wrap in case there no KSPEvent in the custom attributes of the BaseEventDelegate from the button event.

WrappedEvent ( BaseEvent originalEvent, BaseEventList baseParentList, string name, BaseEventDelegate baseActionDelegate, KSPEvent kspEvent ) : System

Method Details

InvokeOriginalEvent() public method

public InvokeOriginalEvent ( ) : void
return void

KspEventFromBaseEvent() public static method

Given a BaseEvent, obtain a KSPEvent. Note : This is used in UIPartActionMenuPatcher.Wrap in case there no KSPEvent in the custom attributes of the BaseEventDelegate from the button event.
public static KspEventFromBaseEvent ( BaseEvent baseEvent ) : KSPEvent
baseEvent BaseEvent BaseEvent from which to obtain a KSPEvent.
return KSPEvent

WrappedEvent() public method

public WrappedEvent ( BaseEvent originalEvent, BaseEventList baseParentList, string name, BaseEventDelegate baseActionDelegate, KSPEvent kspEvent ) : System
originalEvent BaseEvent
baseParentList BaseEventList
name string
baseActionDelegate BaseEventDelegate
kspEvent KSPEvent
return System