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

Event wrapper which returns the minimum returned value of all methods More...

Inheritance diagram for EventValueOperation< T >:
BaseGameEvent

Public Member Functions

void Add (OnEvent evt)
 Adds a event to this event list More...
 
 EventValueOperation (string eventName, T defaultValue, OnOperation operation)
 
delegate T OnEvent ()
 
delegate T OnOperation (T a, T b)
 
void Remove (OnEvent evt)
 Removes an event from this list More...
 
void Update ()
 Fires all events in this event list More...
 
- Public Member Functions inherited from BaseGameEvent
 BaseGameEvent (string eventName)
 

Properties

string gameEventName [get, set]
 
value [get, set]
 
- Properties inherited from BaseGameEvent
string EventName [get]
 

Additional Inherited Members

- Public Attributes inherited from BaseGameEvent
bool debugEvent = false
 
- Protected Attributes inherited from BaseGameEvent
string eventName
 

Detailed Description

Event wrapper which returns the minimum returned value of all methods

Constructor & Destructor Documentation

EventValueOperation< T >.EventValueOperation ( string  eventName,
defaultValue,
OnOperation  operation 
)
inline

Member Function Documentation

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

Adds a event to this event list

Parameters
evtdelegate void OnEvent()
delegate T EventValueOperation< T >.OnEvent ( )
delegate T EventValueOperation< T >.OnOperation ( a,
b 
)
void EventValueOperation< T >.Remove ( OnEvent  evt)
inline

Removes an event from this list

Parameters
evtdelegate void OnEvent()
void EventValueOperation< T >.Update ( )
inline

Fires all events in this event list

Property Documentation

string EventValueOperation< T >.gameEventName
getset
T EventValueOperation< T >.value
getset

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