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 data) |
Fires all events in this event list More... | |
delegate void | OnEvent (T data) |
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 | 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 >.OnEvent | ( | T | data | ) |
Removes an event from this list
evt | delegate void OnEvent(DataType) |