Kerbal Space Program
1.12.4
|
Public Member Functions | |
virtual Vector3 | ActionLocation () |
Get the Location in world space for this ActionModule. Default will return Vector3.zero. Override to return actual location. More... | |
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 void | Awake () |
virtual IEnumerator | Fire () |
Run this action More... | |
virtual string | GetAppObjectiveInfo () |
string | GetDisplayName () |
Get the localized name of the node More... | |
virtual string | GetInfo () |
Get the information to be displayed about the module in the tooltip. More... | |
virtual List< IMENodeDisplay > | GetInternalParametersToDisplay () |
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... | |
virtual string | GetNodeBodyParameterString (BaseAPField field) |
Returns the string to be displayed when the parameter is displayed in the node body 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 | 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... | |
virtual void | Load (ConfigNode node) |
virtual void | OnCloned (ref ActionModule actionModuleBase) |
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... | |
virtual void | Save (ConfigNode node) |
void | UpdateNodeBodyUI () |
Updates the node body parameters More... | |
Public Member Functions inherited from Expansions.Missions.IActionModule | |
void | RunValidationWrapper (Editor.MissionEditorValidator validator) |
Public Attributes | |
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... | |
Properties | |
string | name [get, set] |
the name of the module class More... | |
|
inlinevirtual |
Get the Location in world space for this ActionModule. Default will return Vector3.zero. Override to return actual location.
Implements Expansions.Missions.IActionModule.
Reimplemented in Expansions.Missions.Actions.ActionCreateKerbal, Expansions.Missions.Actions.ActionCreateVessel, Expansions.Missions.Actions.ActionCreateFlag, Expansions.Missions.Actions.ActionCreateComet, and Expansions.Missions.Actions.ActionCreateAsteroid.
|
inline |
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
Implements Expansions.Missions.IMENodeDisplay.
|
inline |
Add a parameter to be displayed in the node body Then updates the UI on the node body
Implements Expansions.Missions.IMENodeDisplay.
|
inline |
Add a parameter to be displayed in the Settings Action Pane
Implements Expansions.Missions.IMENodeDisplay.
|
inlinevirtual |
Reimplemented in Expansions.Missions.Actions.ActionPartFailure, Expansions.Missions.Actions.ActionDialogMessage, Expansions.Missions.Actions.ActionPartRepair, Expansions.Missions.Actions.ActionCreateKerbal, Expansions.Missions.Actions.ActionPartExplode, Expansions.Missions.Actions.ActionVessel, Expansions.Missions.Actions.ActionPartResourceDrain, Expansions.Missions.Actions.ActionCreateFlag, Expansions.Missions.Actions.ActionCreateAsteroid, Expansions.Missions.Actions.ActionCreateComet, Expansions.Missions.Actions.ActionCreateVessel, Expansions.Missions.Actions.ActionPartResourceAmount, Expansions.Missions.Actions.ActionVesselExplode, Expansions.Missions.Actions.ActionMissionScore, Expansions.Missions.Actions.ActionModifierFunds, Expansions.Missions.Actions.ActionVesselActionGroup, Expansions.Missions.Actions.ActionCreateLaunchSite, Expansions.Missions.Actions.ActionMessage, Expansions.Missions.Actions.ActionSetCamera, and Expansions.Missions.Actions.ActionVesselStage.
|
inlinevirtual |
Run this action
Implements Expansions.Missions.IActionModule.
Reimplemented in Expansions.Missions.Actions.ActionPartRepair, Expansions.Missions.Actions.ActionPartFailure, Expansions.Missions.Actions.ActionPartResourceDrain, Expansions.Missions.Actions.ActionDialogMessage, Expansions.Missions.Actions.ActionCreateKerbal, Expansions.Missions.Actions.ActionPartExplode, Expansions.Missions.Actions.ActionCreateFlag, Expansions.Missions.Actions.ActionCreateVessel, Expansions.Missions.Actions.ActionCreateComet, Expansions.Missions.Actions.ActionCreateAsteroid, Expansions.Missions.Actions.ActionPartResourceAmount, Expansions.Missions.Actions.ActionMissionScore, Expansions.Missions.Actions.ActionVesselActionGroup, Expansions.Missions.Actions.ActionCreateLaunchSite, Expansions.Missions.Actions.ActionVesselExplode, Expansions.Missions.Actions.ActionMessage, Expansions.Missions.Actions.ActionModifierFunds, Expansions.Missions.Actions.ActionVesselStage, and Expansions.Missions.Actions.ActionSetCamera.
|
inlinevirtual |
Implements Expansions.Missions.IActionModule.
Reimplemented in Expansions.Missions.Actions.ActionCreateVessel, and Expansions.Missions.Actions.ActionMissionScore.
|
inline |
|
inlinevirtual |
Get the information to be displayed about the module in the tooltip.
Implements Expansions.Missions.IMENodeDisplay.
Reimplemented in Expansions.Missions.Actions.ActionPartRepair, Expansions.Missions.Actions.ActionCreateVessel, Expansions.Missions.Actions.ActionPartResourceDrain, Expansions.Missions.Actions.ActionCreateKerbal, Expansions.Missions.Actions.ActionPartFailure, Expansions.Missions.Actions.ActionPartResourceAmount, Expansions.Missions.Actions.ActionDialogMessage, Expansions.Missions.Actions.ActionCreateFlag, Expansions.Missions.Actions.ActionMissionScore, Expansions.Missions.Actions.ActionCreateComet, Expansions.Missions.Actions.ActionCreateAsteroid, Expansions.Missions.Actions.ActionPartExplode, Expansions.Missions.Actions.ActionCreateLaunchSite, Expansions.Missions.Actions.ActionVesselExplode, Expansions.Missions.Actions.ActionModifierFunds, Expansions.Missions.Actions.ActionVesselActionGroup, Expansions.Missions.Actions.ActionVesselStage, Expansions.Missions.Actions.ActionMessage, and Expansions.Missions.Actions.ActionSetCamera.
|
inlinevirtual |
Gets some more parameters to display.
Implements Expansions.Missions.IMENodeDisplay.
Reimplemented in Expansions.Missions.Actions.ActionPartFailure, and Expansions.Missions.Actions.ActionMissionScore.
|
inline |
Get the name of the action module
Implements Expansions.Missions.IMENodeDisplay.
|
inline |
Get the linked Mission node.
Implements Expansions.Missions.IMENodeDisplay.
|
inlinevirtual |
Returns the string to be displayed when the parameter is displayed in the node body
field |
Implements Expansions.Missions.IMENodeDisplay.
Reimplemented in Expansions.Missions.Actions.ActionPartRepair, Expansions.Missions.Actions.ActionCreateKerbal, Expansions.Missions.Actions.ActionPartResourceDrain, Expansions.Missions.Actions.ActionPartFailure, Expansions.Missions.Actions.ActionCreateVessel, Expansions.Missions.Actions.ActionDialogMessage, Expansions.Missions.Actions.ActionPartResourceAmount, Expansions.Missions.Actions.ActionCreateFlag, Expansions.Missions.Actions.ActionVessel, Expansions.Missions.Actions.ActionPartExplode, Expansions.Missions.Actions.ActionCreateComet, Expansions.Missions.Actions.ActionCreateAsteroid, Expansions.Missions.Actions.ActionVesselExplode, and Expansions.Missions.Actions.ActionCreateLaunchSite.
|
inline |
Evaluates if the parameter is present in the node body display parameters
parameter |
Implements Expansions.Missions.IMENodeDisplay.
|
inline |
Evaluates if the parameter is present in the SAP
parameter |
Implements Expansions.Missions.IMENodeDisplay.
|
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
node |
Implements Expansions.Missions.IActionModule.
Reimplemented in Expansions.Missions.Actions.ActionPartFailure, Expansions.Missions.Actions.ActionDialogMessage, Expansions.Missions.Actions.ActionCreateKerbal, Expansions.Missions.Actions.ActionCreateVessel, Expansions.Missions.Actions.ActionMissionScore, Expansions.Missions.Actions.ActionCreateLaunchSite, and Expansions.Missions.Actions.ActionModifierScore.
|
inlinevirtual |
Implements IConfigNode.
Reimplemented in Expansions.Missions.Actions.ActionCreateVessel, Expansions.Missions.Actions.ActionPartRepair, Expansions.Missions.Actions.ActionCreateKerbal, Expansions.Missions.Actions.ActionPartResourceDrain, Expansions.Missions.Actions.ActionPartFailure, Expansions.Missions.Actions.ActionDialogMessage, Expansions.Missions.Actions.ActionPartResourceAmount, Expansions.Missions.Actions.ActionCreateFlag, Expansions.Missions.Actions.ActionVessel, Expansions.Missions.Actions.ActionMissionScore, Expansions.Missions.Actions.ActionPartExplode, Expansions.Missions.Actions.ActionCreateComet, Expansions.Missions.Actions.ActionCreateAsteroid, Expansions.Missions.Actions.ActionCreateLaunchSite, Expansions.Missions.Actions.ActionVesselExplode, Expansions.Missions.Actions.ActionModifierFunds, Expansions.Missions.Actions.ActionVesselActionGroup, Expansions.Missions.Actions.ActionMessage, Expansions.Missions.Actions.ActionVesselStage, and Expansions.Missions.Actions.ActionSetCamera.
|
inlinevirtual |
Implements Expansions.Missions.IActionModule.
Reimplemented in Expansions.Missions.Actions.ActionCreateKerbal, Expansions.Missions.Actions.ActionCreateVessel, Expansions.Missions.Actions.ActionCreateFlag, Expansions.Missions.Actions.ActionCreateComet, and Expansions.Missions.Actions.ActionCreateAsteroid.
|
inlinevirtual |
Reimplemented in Expansions.Missions.Actions.ActionPartFailure, and Expansions.Missions.Actions.ActionPartRepair.
|
inlinevirtual |
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
An example of this occuring is when a vessel is launched from a craft file if there is an existing vessel in the game
param name="vesselID">The persistentID of the vessel
oldId | old Persistent ID |
newId | new Persistent ID |
Reimplemented in Expansions.Missions.Actions.ActionPartResourceDrain, Expansions.Missions.Actions.ActionPartFailure, and Expansions.Missions.Actions.ActionPartExplode.
|
inlinevirtual |
Override this function to catch when a vessels persistentId is changed, you should use this to update any vesselID references in your action
An example of this occuring is when a vessel is launched from a craft file if there is an existing vessel in the game
oldId | old Persistent ID |
newId | new Persistent ID |
Reimplemented in Expansions.Missions.Actions.ActionVessel, Expansions.Missions.Actions.ActionPartResourceDrain, Expansions.Missions.Actions.ActionPartFailure, and Expansions.Missions.Actions.ActionPartExplode.
|
inlinevirtual |
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
An example of this occuring is when two vessels dock.
param name="oldId">The persistentId of the first Vessel
newId | The persistentId of the second Vessel |
Reimplemented in Expansions.Missions.Actions.ActionVessel.
|
inlinevirtual |
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
An example of this occuring is when a vessel undocks and a new vessel is created.
param name="vessel">The Vessel that was created
Reimplemented in Expansions.Missions.Actions.ActionVessel, Expansions.Missions.Actions.ActionPartResourceDrain, Expansions.Missions.Actions.ActionPartFailure, and Expansions.Missions.Actions.ActionPartExplode.
|
inlinevirtual |
Can be used as a hook once all the parameters in a module have been setup.
Implements Expansions.Missions.IMENodeDisplay.
Reimplemented in Expansions.Missions.Actions.ActionDialogMessage.
|
inline |
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
Implements Expansions.Missions.IMENodeDisplay.
|
inline |
Removes a parameter to be displayed in the node body Then updates the UI on the node body
Implements Expansions.Missions.IMENodeDisplay.
|
inline |
Remove a parameter to be displayed in the Settings Action Pane
Implements Expansions.Missions.IMENodeDisplay.
|
inlinevirtual |
Override this to add custom Validation checks and results to this object
validator | The MissionValidator that the results will be added to |
Reimplemented in Expansions.Missions.Actions.ActionPartRepair, Expansions.Missions.Actions.ActionCreateVessel, Expansions.Missions.Actions.ActionPartResourceDrain, Expansions.Missions.Actions.ActionPartFailure, Expansions.Missions.Actions.ActionPartExplode, and Expansions.Missions.Actions.ActionCreateLaunchSite.
|
inline |
Called to run the Validation checks for this object.
User based stuff is in the overrides
validator | The MissionValidator that the results will be added to |
|
inlinevirtual |
Implements IConfigNode.
Reimplemented in Expansions.Missions.Actions.ActionCreateVessel, Expansions.Missions.Actions.ActionPartRepair, Expansions.Missions.Actions.ActionCreateKerbal, Expansions.Missions.Actions.ActionPartResourceDrain, Expansions.Missions.Actions.ActionPartFailure, Expansions.Missions.Actions.ActionPartResourceAmount, Expansions.Missions.Actions.ActionDialogMessage, Expansions.Missions.Actions.ActionCreateFlag, Expansions.Missions.Actions.ActionMissionScore, Expansions.Missions.Actions.ActionVessel, Expansions.Missions.Actions.ActionPartExplode, Expansions.Missions.Actions.ActionCreateComet, Expansions.Missions.Actions.ActionCreateAsteroid, Expansions.Missions.Actions.ActionCreateLaunchSite, Expansions.Missions.Actions.ActionVesselExplode, Expansions.Missions.Actions.ActionModifierFunds, Expansions.Missions.Actions.ActionVesselActionGroup, Expansions.Missions.Actions.ActionVesselStage, Expansions.Missions.Actions.ActionMessage, and Expansions.Missions.Actions.ActionSetCamera.
|
inline |
Updates the node body parameters
Implements Expansions.Missions.IMENodeDisplay.
bool Expansions.Missions.ActionModule.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.
MENode Expansions.Missions.ActionModule.node |
Refernce to the Node that the action is part of
List<string> Expansions.Missions.ActionModule.parametersDisplayedInSAP |
The parameters displayed in the Settings Action Pane
bool Expansions.Missions.ActionModule.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.
string Expansions.Missions.ActionModule.title = "" |
The display name for this
|
getset |
the name of the module class