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

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

Inheritance diagram for EventValueComparison< T >:
BaseGameEvent

Public Member Functions

void Add (OnEvent evt)
 Adds a event to this event list More...
 
 EventValueComparison (string eventName, T defaultValue, OnCompare comparer)
 
delegate bool OnCompare (T a, T b)
 
delegate T OnEvent ()
 
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 eventName [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

EventValueComparison< T >.EventValueComparison ( string  eventName,
defaultValue,
OnCompare  comparer 
)
inline

Member Function Documentation

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

Adds a event to this event list

Parameters
evtdelegate void OnEvent()
delegate bool EventValueComparison< T >.OnCompare ( a,
b 
)
delegate T EventValueComparison< T >.OnEvent ( )
void EventValueComparison< T >.Remove ( OnEvent  evt)
inline

Removes an event from this list

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

Fires all events in this event list

Property Documentation

string EventValueComparison< T >.eventName
getset
T EventValueComparison< T >.value
getset

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