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
EventDataModifier< T, U > Class Template Reference

Generic event wrapper More...

Inheritance diagram for EventDataModifier< T, U >:
BaseGameEvent

Public Member Functions

void Add (OnEvent evt)
 Adds a event to this event list More...
 
 EventDataModifier (string eventName)
 
Fire (T d1, U d2)
 Fires all events in this event list More...
 
delegate T OnEvent (T d1, U d2)
 
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
TDataType class/strut

Constructor & Destructor Documentation

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

Member Function Documentation

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

Adds a event to this event list

Parameters
evtdelegate void OnEvent(DataType)
T EventDataModifier< T, U >.Fire ( d1,
d2 
)
inline

Fires all events in this event list

Parameters
dataData class/strut
delegate T EventDataModifier< T, U >.OnEvent ( d1,
d2 
)
void EventDataModifier< 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: