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

More...

Inheritance diagram for Expansions.Missions.Actions.ActionCreateKerbal:
Expansions.Missions.ActionModule Expansions.Missions.INodeOrbit Expansions.Missions.IMissionKerbal IConfigNode Expansions.Missions.IActionModule IConfigNode Expansions.Missions.IMENodeDisplay

Public Member Functions

override Vector3 ActionLocation ()
 Returns the Location for Create Kerbal in world space. More...
 
override void Awake ()
 
override IEnumerator Fire ()
 Run this action More...
 
override string GetInfo ()
 Get the information to be displayed about the module in the tooltip. More...
 
override string GetNodeBodyParameterString (BaseAPField field)
 Returns the string to be displayed when the parameter is displayed in the node body More...
 
Orbit GetNodeOrbit ()
 Returns Orbit for Create Kerbal - if it is set to an orbit. Otherwise returns null. More...
 
ConfigNode GetProtoVesselNode ()
 Generates a ProtoVessel ConfigNode for a Kerbal on EVA More...
 
ConfigNode GetProtoVesselNode (float feetToPivotDistance)
 Generates a ProtoVessel ConfigNode for a Kerbal on EVA More...
 
bool HasNodeOrbit ()
 Does this Node have an Orbit? More...
 
override void Initialize (MENode node)
 This is called Once when an ActionModule component is instantiated. This is a mandatory Method and will set the MENode reference. Override this method in any action modules that require the MENode reference prior to Awake, but always call the base.Initialize More...
 
void KerbalAdded (ProtoCrewMember kerbal)
 Called when a Kerbal is added to the roster. More...
 
void KerbalNameChange (ProtoCrewMember kerbal, string oldName, string newName)
 Called when a Kerbal changes name. More...
 
void KerbalRemoved (ProtoCrewMember kerbal)
 Called when a Kerbal is removed from the roster. More...
 
void KerbalRosterStatusChange (ProtoCrewMember kerbal, ProtoCrewMember.RosterStatus oldStatus, ProtoCrewMember.RosterStatus newStatus)
 Called if a Kerbal's roster status changes. More...
 
void KerbalTypeChange (ProtoCrewMember kerbal, ProtoCrewMember.KerbalType oldType, ProtoCrewMember.KerbalType newType)
 Called when a Kerbal changes KerbalType. More...
 
override void Load (ConfigNode node)
 
void NodeDeleted ()
 Called if the Node is deleted in the mission builder. More...
 
override void OnCloned (ref ActionModule actionModuleBase)
 
override void Save (ConfigNode node)
 
- Public Member Functions inherited from Expansions.Missions.ActionModule
void AddParameterToNodeBody (string parameter)
 Add a parameter to be displayed in the node body Used for batch processing node body parameters If you want an immediate UI update, use AddParameterToNodeBodyAndUpdateUI More...
 
void AddParameterToNodeBodyAndUpdateUI (string parameter)
 Add a parameter to be displayed in the node body Then updates the UI on the node body More...
 
void AddParameterToSAP (string parameter)
 Add a parameter to be displayed in the Settings Action Pane More...
 
virtual string GetAppObjectiveInfo ()
 
string GetDisplayName ()
 Get the localized name of the node More...
 
virtual List< IMENodeDisplayGetInternalParametersToDisplay ()
 Gets some more parameters to display. More...
 
string GetName ()
 Get the name of the action module More...
 
MENode GetNode ()
 Get the linked Mission node. More...
 
bool HasNodeBodyParameter (string parameter)
 Evaluates if the parameter is present in the node body display parameters More...
 
bool HasSAPParameter (string parameter)
 Evaluates if the parameter is present in the SAP More...
 
virtual void OnDestroy ()
 
virtual void OnPartPersistentIdChanged (uint vesselID, uint oldId, uint newId)
 Override this function to catch when a parts persistentId is changed, you should use this to update any partID references in your action where the part is in the correct vessel More...
 
virtual void OnVesselPersistentIdChanged (uint oldId, uint newId)
 Override this function to catch when a vessels persistentId is changed, you should use this to update any vesselID references in your action More...
 
virtual void OnVesselsDocking (uint oldId, uint newId)
 Override this function to catch when a Vessel Dock, you should use this to update any partID/Vessel references in your action where the part is in the correct vessel More...
 
virtual void OnVesselsUndocking (Vessel oldVessel, Vessel newVessel)
 Override this function to catch when a parts Vessel is changed, you should use this to update any partID/Vessel references in your action where the part is in the correct vessel More...
 
virtual void ParameterSetupComplete ()
 Can be used as a hook once all the parameters in a module have been setup. More...
 
void RemoveParameterFromNodeBody (string parameter)
 Add a parameter to be displayed in the node body Used for batch processing node body parameters If you want an immediate UI update, use AddParameterToNodeBodyAndUpdateUI More...
 
void RemoveParameterFromNodeBodyAndUpdateUI (string parameter)
 Removes a parameter to be displayed in the node body Then updates the UI on the node body More...
 
void RemoveParameterFromSAP (string parameter)
 Remove a parameter to be displayed in the Settings Action Pane More...
 
virtual void RunValidation (MissionEditorValidator validator)
 Override this to add custom Validation checks and results to this object More...
 
void RunValidationWrapper (MissionEditorValidator validator)
 Called to run the Validation checks for this object. More...
 
void UpdateNodeBodyUI ()
 Updates the node body parameters More...
 
- Public Member Functions inherited from Expansions.Missions.IActionModule
void RunValidationWrapper (Editor.MissionEditorValidator validator)
 

Public Attributes

bool isHelmetEnabled = GameSettings.EVA_DEFAULT_HELMET_ON
 Specifies if a kerbal wears the helmet when placed. More...
 
bool isNeckRingEnabled = GameSettings.EVA_DEFAULT_NECKRING_ON
 Specifies if a kerbal wears the neckring when placed. More...
 
bool isStranded
 Set to true if kerbal is stranded/undiscovered. More...
 
ParamChoices_VesselSimpleLocation location
 Holds the location info, can be Landed or in Orbit. More...
 
MissionKerbal missionKerbal
 Kerbal to Create More...
 
uint persistentId = 0
 
- Public Attributes inherited from Expansions.Missions.ActionModule
bool isRunning = false
 Indicates if the coroutine is running. Set to true when Fire() method starts and set to false when it is finished. Used when restartOnSceneLoad is true to restart coroutine for an ActionModule. More...
 
MENode node
 Refernce to the Node that the action is part of More...
 
List< string > parametersDisplayedInSAP
 The parameters displayed in the Settings Action Pane More...
 
bool restartOnSceneLoad = false
 Set to true if this module requires the MissionSystem to restart a Fire() coroutine on scene change. It will only do this if the coroutine was already running before the scene change. More...
 
string title = ""
 The display name for this More...
 

Additional Inherited Members

- Properties inherited from Expansions.Missions.ActionModule
string name [get, set]
 the name of the module class More...
 

Detailed Description

Member Function Documentation

override Vector3 Expansions.Missions.Actions.ActionCreateKerbal.ActionLocation ( )
inlinevirtual

Returns the Location for Create Kerbal in world space.

Returns

Reimplemented from Expansions.Missions.ActionModule.

override void Expansions.Missions.Actions.ActionCreateKerbal.Awake ( )
inlinevirtual

Reimplemented from Expansions.Missions.ActionModule.

override IEnumerator Expansions.Missions.Actions.ActionCreateKerbal.Fire ( )
inlinevirtual

Run this action

Reimplemented from Expansions.Missions.ActionModule.

override string Expansions.Missions.Actions.ActionCreateKerbal.GetInfo ( )
inlinevirtual

Get the information to be displayed about the module in the tooltip.

Returns
Information to be displayed about the module in the tooltip

Reimplemented from Expansions.Missions.ActionModule.

override string Expansions.Missions.Actions.ActionCreateKerbal.GetNodeBodyParameterString ( BaseAPField  field)
inlinevirtual

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

Parameters
field
Returns

Reimplemented from Expansions.Missions.ActionModule.

Orbit Expansions.Missions.Actions.ActionCreateKerbal.GetNodeOrbit ( )
inline

Returns Orbit for Create Kerbal - if it is set to an orbit. Otherwise returns null.

Returns
Orbit

Implements Expansions.Missions.INodeOrbit.

ConfigNode Expansions.Missions.Actions.ActionCreateKerbal.GetProtoVesselNode ( )
inline

Generates a ProtoVessel ConfigNode for a Kerbal on EVA

Returns
ConfigNode containing the Kerbal EVA ProtoVessel
ConfigNode Expansions.Missions.Actions.ActionCreateKerbal.GetProtoVesselNode ( float  feetToPivotDistance)
inline

Generates a ProtoVessel ConfigNode for a Kerbal on EVA

Parameters
feetToPivotDistanceThe Distance from the kerbal's feet to their CoM
Returns
ConfigNode containing the Kerbal EVA ProtoVessel
bool Expansions.Missions.Actions.ActionCreateKerbal.HasNodeOrbit ( )
inline

Does this Node have an Orbit?

Returns
True

Implements Expansions.Missions.INodeOrbit.

override void Expansions.Missions.Actions.ActionCreateKerbal.Initialize ( MENode  node)
inlinevirtual

This is called Once when an ActionModule component is instantiated. This is a mandatory Method and will set the MENode reference. Override this method in any action modules that require the MENode reference prior to Awake, but always call the base.Initialize

Parameters
node

Reimplemented from Expansions.Missions.ActionModule.

void Expansions.Missions.Actions.ActionCreateKerbal.KerbalAdded ( ProtoCrewMember  kerbal)
inline

Called when a Kerbal is added to the roster.

Implements Expansions.Missions.IMissionKerbal.

void Expansions.Missions.Actions.ActionCreateKerbal.KerbalNameChange ( ProtoCrewMember  kerbal,
string  oldName,
string  newName 
)
inline

Called when a Kerbal changes name.

Implements Expansions.Missions.IMissionKerbal.

void Expansions.Missions.Actions.ActionCreateKerbal.KerbalRemoved ( ProtoCrewMember  kerbal)
inline

Called when a Kerbal is removed from the roster.

Implements Expansions.Missions.IMissionKerbal.

void Expansions.Missions.Actions.ActionCreateKerbal.KerbalRosterStatusChange ( ProtoCrewMember  kerbal,
ProtoCrewMember.RosterStatus  oldStatus,
ProtoCrewMember.RosterStatus  newStatus 
)
inline

Called if a Kerbal's roster status changes.

Implements Expansions.Missions.IMissionKerbal.

void Expansions.Missions.Actions.ActionCreateKerbal.KerbalTypeChange ( ProtoCrewMember  kerbal,
ProtoCrewMember.KerbalType  oldType,
ProtoCrewMember.KerbalType  newType 
)
inline

Called when a Kerbal changes KerbalType.

Implements Expansions.Missions.IMissionKerbal.

override void Expansions.Missions.Actions.ActionCreateKerbal.Load ( ConfigNode  node)
inlinevirtual

Reimplemented from Expansions.Missions.ActionModule.

void Expansions.Missions.Actions.ActionCreateKerbal.NodeDeleted ( )
inline

Called if the Node is deleted in the mission builder.

Implements Expansions.Missions.IMissionKerbal.

override void Expansions.Missions.Actions.ActionCreateKerbal.OnCloned ( ref ActionModule  actionModuleBase)
inlinevirtual

Reimplemented from Expansions.Missions.ActionModule.

override void Expansions.Missions.Actions.ActionCreateKerbal.Save ( ConfigNode  node)
inlinevirtual

Reimplemented from Expansions.Missions.ActionModule.

Member Data Documentation

bool Expansions.Missions.Actions.ActionCreateKerbal.isHelmetEnabled = GameSettings.EVA_DEFAULT_HELMET_ON

Specifies if a kerbal wears the helmet when placed.

bool Expansions.Missions.Actions.ActionCreateKerbal.isNeckRingEnabled = GameSettings.EVA_DEFAULT_NECKRING_ON

Specifies if a kerbal wears the neckring when placed.

bool Expansions.Missions.Actions.ActionCreateKerbal.isStranded

Set to true if kerbal is stranded/undiscovered.

ParamChoices_VesselSimpleLocation Expansions.Missions.Actions.ActionCreateKerbal.location

Holds the location info, can be Landed or in Orbit.

MissionKerbal Expansions.Missions.Actions.ActionCreateKerbal.missionKerbal

Kerbal to Create

uint Expansions.Missions.Actions.ActionCreateKerbal.persistentId = 0

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