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

List of all defined part actions More...

Inheritance diagram for BaseEventList:

Classes

class  ReflectedData
 

Public Member Functions

void AddBaseEventList (BaseEventList addList)
 Adds all the elements in another BaseEventList to this one. More...
 
 BaseEventList (object obj)
 
 BaseEventList (Part part, PartModule module)
 Creates a new instance More...
 
void ClearDefault ()
 Removes the default action reference More...
 
bool Contains (string actionName)
 Does this list contain the action of given name? More...
 
bool Contains (int actionID)
 Does this list contain the action of given name? More...
 
BaseEvent GetByIndex (int index)
 
void LoadStagingIcon ()
 
void OnLoad (ConfigNode node)
 
void OnSave (ConfigNode node)
 
void RemoveBaseEventList (BaseEventList removeList)
 Removes all the elements in another BaseEventList from this one. More...
 
bool Send (string actionName)
 Sends an action to one of the actions in this list if any match More...
 
bool Send (int actionID)
 Sends an action to one of the actions in this list if any match More...
 
bool Send (string actionName, BaseEventDetails actionData)
 Sends an action to one of the actions in this list if any match More...
 
bool Send (int actionID, BaseEventDetails actionData)
 Sends an action to one of the actions in this list if any match More...
 
bool SendDefault ()
 Fires the default action if it is set More...
 
bool SendDefault (BaseEventDetails actionData)
 Fires the default action if it is set More...
 
void SetDefault (string actionName)
 Sets the given action as default More...
 
void SetDefault (int actionID)
 Sets the given action as default More...
 

Public Attributes

PartModule module
 
object obj
 
Part part
 

Static Protected Member Functions

static ReflectedData GetReflectedAttributes (System.Type type)
 

Static Protected Attributes

static Dictionary< System.Type,
ReflectedData
reflectedAttributeCache = new Dictionary<System.Type, ReflectedData>()
 

Properties

new BaseEvent this[int actionID] [get]
 
BaseEvent this[string actionName] [get]
 

Detailed Description

List of all defined part actions

Constructor & Destructor Documentation

BaseEventList.BaseEventList ( object  obj)
inline
BaseEventList.BaseEventList ( Part  part,
PartModule  module 
)
inline

Creates a new instance

Parameters
partThe parent part

Member Function Documentation

void BaseEventList.AddBaseEventList ( BaseEventList  addList)
inline

Adds all the elements in another BaseEventList to this one.

Parameters
addListBaseEventList to add.
void BaseEventList.ClearDefault ( )
inline

Removes the default action reference

bool BaseEventList.Contains ( string  actionName)
inline

Does this list contain the action of given name?

Parameters
actionNameExposed action name
Returns
True/false
bool BaseEventList.Contains ( int  actionID)
inline

Does this list contain the action of given name?

Parameters
actionNameExposed action name
Returns
True/false
BaseEvent BaseEventList.GetByIndex ( int  index)
inline
static ReflectedData BaseEventList.GetReflectedAttributes ( System.Type  type)
inlinestaticprotected
void BaseEventList.LoadStagingIcon ( )
inline
void BaseEventList.OnLoad ( ConfigNode  node)
inline
void BaseEventList.OnSave ( ConfigNode  node)
inline
void BaseEventList.RemoveBaseEventList ( BaseEventList  removeList)
inline

Removes all the elements in another BaseEventList from this one.

Parameters
removeListBaseEventList to remove.
bool BaseEventList.Send ( string  actionName)
inline

Sends an action to one of the actions in this list if any match

Parameters
actionNameAction name to invoke
Returns
true/false depending on if action was successful
bool BaseEventList.Send ( int  actionID)
inline

Sends an action to one of the actions in this list if any match

Parameters
actionNameAction name to invoke
Returns
true/false depending on if action was successful
bool BaseEventList.Send ( string  actionName,
BaseEventDetails  actionData 
)
inline

Sends an action to one of the actions in this list if any match

Parameters
actionNameAction name to invoke
actionDataAction data class (null if none)
Returns
true/false depending on if action was successful
bool BaseEventList.Send ( int  actionID,
BaseEventDetails  actionData 
)
inline

Sends an action to one of the actions in this list if any match

Parameters
actionNameAction name to invoke
actionDataAction data class (null if none)
Returns
true/false depending on if action was successful
bool BaseEventList.SendDefault ( )
inline

Fires the default action if it is set

Parameters
actionDataAction data class (null if none)
Returns
true/false depending on if action was successful
bool BaseEventList.SendDefault ( BaseEventDetails  actionData)
inline

Fires the default action if it is set

Parameters
actionDataAction data class (null if none)
Returns
true/false depending on if action was successful
void BaseEventList.SetDefault ( string  actionName)
inline

Sets the given action as default

Parameters
actionNameExposed action name
void BaseEventList.SetDefault ( int  actionID)
inline

Sets the given action as default

Parameters
actionNameExposed action name

Member Data Documentation

PartModule BaseEventList.module
object BaseEventList.obj
Part BaseEventList.part
Dictionary<System.Type, ReflectedData> BaseEventList.reflectedAttributeCache = new Dictionary<System.Type, ReflectedData>()
staticprotected

Property Documentation

new BaseEvent BaseEventList.this[int actionID]
get
BaseEvent BaseEventList.this[string actionName]
get

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