Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Classes | Public Member Functions | Public Attributes | List of all members
EventDoubleMax Class Reference

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

Inheritance diagram for EventDoubleMax:
BaseGameEvent

Public Member Functions

void Add (OnEvent evt)
 Adds a event to this event list More...
 
 EventDoubleMax (string eventName, double defaultValue=0d)
 
double Fire ()
 Fires all events in this event list More...
 
delegate double OnEvent ()
 
void Remove (OnEvent evt)
 Removes an event from this list More...
 
- Public Member Functions inherited from BaseGameEvent
 BaseGameEvent (string eventName)
 

Public Attributes

double defaultValue
 
- Public Attributes inherited from BaseGameEvent
bool debugEvent = false
 

Additional Inherited Members

- Protected Attributes inherited from BaseGameEvent
string eventName
 
- Properties inherited from BaseGameEvent
string EventName [get]
 

Detailed Description

Event wrapper which returns the maximum returned value of all methods

Constructor & Destructor Documentation

EventDoubleMax.EventDoubleMax ( string  eventName,
double  defaultValue = 0d 
)
inline

Member Function Documentation

void EventDoubleMax.Add ( OnEvent  evt)
inline

Adds a event to this event list

Parameters
evtdelegate void OnEvent()
double EventDoubleMax.Fire ( )
inline

Fires all events in this event list

delegate double EventDoubleMax.OnEvent ( )
void EventDoubleMax.Remove ( OnEvent  evt)
inline

Removes an event from this list

Parameters
evtdelegate void OnEvent()

Member Data Documentation

double EventDoubleMax.defaultValue

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