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

Public Member Functions

override bool Equals (object obj)
 
override int GetHashCode ()
 
string GetNodeBodyParameterString ()
 Returns the string to be displayed when the parameter is displayed in the node body More...
 
void Initialize (ProtoCrewMember kerbal, MENode node)
 
bool IsValid (ProtoCrewMember targetKerbal)
 Does the passed kerbal match the stored one? If there is no stored one, then will also be true (any crew, any tourist, etc) if the passed in kerbal type is the type set (typeToShow) in the parameter. More...
 
void Load (ConfigNode node)
 
 MissionKerbal ()
 
 MissionKerbal (ProtoCrewMember kerbal, MENode node, UpdateNodeBodyUI updateNodeBodyUI, ProtoCrewMember.KerbalType typetoShow=ProtoCrewMember.KerbalType.Crew, bool showAnyKerbal=true, bool anyTextIsActiveKerbal=false)
 
void onKerbalAdded (ProtoCrewMember crew)
 
void onKerbalNameChange (ProtoCrewMember crew, string oldName, string newName)
 
void onKerbalRemoved (ProtoCrewMember crew)
 
void onKerbalStatusChange (ProtoCrewMember crew, ProtoCrewMember.RosterStatus prevStatus, ProtoCrewMember.RosterStatus newStatus)
 
void onKerbalTypeChange (ProtoCrewMember crew, ProtoCrewMember.KerbalType oldType, ProtoCrewMember.KerbalType newType)
 
void Save (ConfigNode node)
 
void setcurrentKerbalAvailable ()
 Will set the currently selected kerbal's roster status to available if one is selected. More...
 
List< MEGUIDropDownItemSetKerbalList ()
 Fills up the dropdown list for selecting kerbals with the available crew More...
 
List< MEGUIDropDownItemSetKerbalTypeList ()
 Fills up the dropdown list for selecting kerbal types More...
 
delegate void UpdateNodeBodyUI ()
 

Public Attributes

bool anyTextIsActiveKerbal
 If true will set the text to be "Active Kerbal" instead of Any Kerbal. More...
 
bool showAllRosterStatus
 If true will override statusToShow and show ALL kerbals regardless of status. More...
 
bool showAnyKerbal
 If true will add the "Any Kerbal" option to the dropdown list. More...
 
bool showStrandedOnly
 If true will show stranded kerbals only. More...
 
ProtoCrewMember.RosterStatus statusToShow
 The RosterStatus of kerbal's to show in the mission builder More...
 
UpdateNodeBodyUI updateNodeBodyUI
 

Properties

bool AnyValid [get, set]
 Is any kerbal valid for comparisons More...
 
ProtoCrewMember Kerbal [get, set]
 The Currently selected ProtoCrewMember More...
 
string Name [get]
 Returns the name of the selected Kerbal. Or if none selected "Any Kerbal" - Localized More...
 
ProtoCrewMember.KerbalType TypeToShow [get, set]
 The KerbalType to show in the Kerbal List More...
 

Constructor & Destructor Documentation

Expansions.Missions.MissionKerbal.MissionKerbal ( )
inline
Expansions.Missions.MissionKerbal.MissionKerbal ( ProtoCrewMember  kerbal,
MENode  node,
UpdateNodeBodyUI  updateNodeBodyUI,
ProtoCrewMember.KerbalType  typetoShow = ProtoCrewMember.KerbalType.Crew,
bool  showAnyKerbal = true,
bool  anyTextIsActiveKerbal = false 
)
inline

Member Function Documentation

override bool Expansions.Missions.MissionKerbal.Equals ( object  obj)
inline
override int Expansions.Missions.MissionKerbal.GetHashCode ( )
inline
string Expansions.Missions.MissionKerbal.GetNodeBodyParameterString ( )
inline

Returns the string to be displayed when the parameter is displayed in the node body

Returns
String to be displayed when the parameter is displayed in the node body,
void Expansions.Missions.MissionKerbal.Initialize ( ProtoCrewMember  kerbal,
MENode  node 
)
inline
bool Expansions.Missions.MissionKerbal.IsValid ( ProtoCrewMember  targetKerbal)
inline

Does the passed kerbal match the stored one? If there is no stored one, then will also be true (any crew, any tourist, etc) if the passed in kerbal type is the type set (typeToShow) in the parameter.

Parameters
targetKerbalKerbal to compare to
Returns
True if the kerbal matches or this is set to AnyValid
void Expansions.Missions.MissionKerbal.Load ( ConfigNode  node)
inline
void Expansions.Missions.MissionKerbal.onKerbalAdded ( ProtoCrewMember  crew)
inline
void Expansions.Missions.MissionKerbal.onKerbalNameChange ( ProtoCrewMember  crew,
string  oldName,
string  newName 
)
inline
void Expansions.Missions.MissionKerbal.onKerbalRemoved ( ProtoCrewMember  crew)
inline
void Expansions.Missions.MissionKerbal.onKerbalStatusChange ( ProtoCrewMember  crew,
ProtoCrewMember.RosterStatus  prevStatus,
ProtoCrewMember.RosterStatus  newStatus 
)
inline
void Expansions.Missions.MissionKerbal.onKerbalTypeChange ( ProtoCrewMember  crew,
ProtoCrewMember.KerbalType  oldType,
ProtoCrewMember.KerbalType  newType 
)
inline
void Expansions.Missions.MissionKerbal.Save ( ConfigNode  node)
inline
void Expansions.Missions.MissionKerbal.setcurrentKerbalAvailable ( )
inline

Will set the currently selected kerbal's roster status to available if one is selected.

List<MEGUIDropDownItem> Expansions.Missions.MissionKerbal.SetKerbalList ( )
inline

Fills up the dropdown list for selecting kerbals with the available crew

Returns
List<MEGUIDropDownItem> Expansions.Missions.MissionKerbal.SetKerbalTypeList ( )
inline

Fills up the dropdown list for selecting kerbal types

Returns
delegate void Expansions.Missions.MissionKerbal.UpdateNodeBodyUI ( )

Member Data Documentation

bool Expansions.Missions.MissionKerbal.anyTextIsActiveKerbal

If true will set the text to be "Active Kerbal" instead of Any Kerbal.

bool Expansions.Missions.MissionKerbal.showAllRosterStatus

If true will override statusToShow and show ALL kerbals regardless of status.

bool Expansions.Missions.MissionKerbal.showAnyKerbal

If true will add the "Any Kerbal" option to the dropdown list.

bool Expansions.Missions.MissionKerbal.showStrandedOnly

If true will show stranded kerbals only.

ProtoCrewMember.RosterStatus Expansions.Missions.MissionKerbal.statusToShow

The RosterStatus of kerbal's to show in the mission builder

UpdateNodeBodyUI Expansions.Missions.MissionKerbal.updateNodeBodyUI

Property Documentation

bool Expansions.Missions.MissionKerbal.AnyValid
getset

Is any kerbal valid for comparisons

ProtoCrewMember Expansions.Missions.MissionKerbal.Kerbal
getset

The Currently selected ProtoCrewMember

string Expansions.Missions.MissionKerbal.Name
get

Returns the name of the selected Kerbal. Or if none selected "Any Kerbal" - Localized

ProtoCrewMember.KerbalType Expansions.Missions.MissionKerbal.TypeToShow
getset

The KerbalType to show in the Kerbal List


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