Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Classes | Public Member Functions | List of all members
EventData< T, U > Class Template Reference

Generic event wrapper More...

Inheritance diagram for EventData< T, U >:
BaseGameEvent

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]
 

Detailed Description

Generic event wrapper

Template Parameters
T, UDataType class/strut

Constructor & Destructor Documentation

EventData< T, U >.EventData ( string  eventName)
inline

Member Function Documentation

void EventData< T, U >.Add ( OnEvent  evt)
inline

Adds a event to this event list

Parameters
evtdelegate void OnEvent(DataType)
void EventData< T, U >.Fire ( data0,
data1 
)
inline

Fires all events in this event list

Parameters
dataData class/strut
delegate void EventData< T, U >.OnEvent ( data0,
data1 
)
void EventData< T, U >.Remove ( OnEvent  evt)
inline

Removes an event from this list

Parameters
evtdelegate void OnEvent(DataType)

The documentation for this class was generated from the following file: