Kerbal Space Program
1.12.4
|
Generic event wrapper More...
Public Member Functions | |
void | Add (OnEvent evt) |
Adds a event to this event list More... | |
EventData (string eventName) | |
void | Fire (T data0, U data1) |
Fires all events in this event list More... | |
delegate void | OnEvent (T data0, U data1) |
void | Remove (OnEvent evt) |
Removes an event from this list More... | |
Public Member Functions inherited from BaseGameEvent | |
BaseGameEvent (string eventName) | |
Additional Inherited Members | |
Public Attributes inherited from BaseGameEvent | |
bool | debugEvent = false |
Protected Attributes inherited from BaseGameEvent | |
string | eventName |
Properties inherited from BaseGameEvent | |
string | EventName [get] |
Generic event wrapper
T, U | DataType class/strut |
|
inline |
Adds a event to this event list
evt | delegate void OnEvent(DataType) |
|
inline |
Fires all events in this event list
data | Data class/strut |
delegate void EventData< T, U >.OnEvent | ( | T | data0, |
U | data1 | ||
) |
Removes an event from this list
evt | delegate void OnEvent(DataType) |