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 > Class Template Reference

Generic event wrapper More...

Inheritance diagram for EventData< T >:
BaseGameEvent

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]
 

Detailed Description

Generic event wrapper

Template Parameters
TDataType class/strut

Constructor & Destructor Documentation

EventData< T >.EventData ( string  eventName)
inline

Member Function Documentation

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

Adds a event to this event list

Parameters
evtdelegate void OnEvent(DataType)
void EventData< T >.Fire ( data)
inline

Fires all events in this event list

Parameters
dataData class/strut
delegate void EventData< T >.OnEvent ( data)
void EventData< T >.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: