Kerbal Space Program
1.12.4
|
Public Types | |
enum | StartTypeEnum { StartTypeEnum.VAB, StartTypeEnum.SPH, StartTypeEnum.VesselList, StartTypeEnum.SpaceCenter, StartTypeEnum.SaveFile } |
Possible options for a missions start scene/situation More... | |
enum | VesselStartSituations { VesselStartSituations.LANDED = 1, VesselStartSituations.PRELAUNCH = 4, VesselStartSituations.ORBITING = 32 } |
Supported vessel start situations for missions. Should translate directly to Vessel.Situation Enum entries. More... | |
Public Member Functions | |
bool | AddNodeWithVesselToBuild (MENode node) |
Adds a MENode to the nodesWithVesselToBuild list for Vessel Creation nodes. Checks if the passed in node is atually part of this mission. The list will be processed once the player goes to the VAB/SPH to begin building vessels. Will only add the node for processing if the current game is a Mission in Play. 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... | |
void | Destroy () |
Perform all the cleaning operations that we need before the module is destroyed. More... | |
void | DestroySituation () |
void | FillVesselSituationList (MENode missionStartNode, bool replaceIfFound=false, bool fillAllNodes=false) |
Fills the starting vesselList with the docked CreateVessel nodes attached to the startNode. Will check first if an entry with matching persistentId already is in the list and will NOT replace it by default. More... | |
List< VesselSituation > | GetAvailableVesselSituations () |
Get the list off available vessel situtations More... | |
string | GetDisplayName () |
Get the name of the module More... | |
string | GetInfo () |
Get the information to be displayed about the module in the tooltip. More... | |
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... | |
VesselSituation | GetVesselSituationByVesselID (uint PersistentId) |
Searches the VesselSituationList for an entry that matches the passed in vessel persistentId. 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... | |
void | Initialize () |
Perform all the setup operations that we need when the module is initialised in the mission builder. More... | |
void | InitSituation () |
Initialize the situation and actions of the mission More... | |
void | Load (ConfigNode node) |
MissionSituation () | |
MissionSituation (Mission mission) | |
void | ParameterSetupComplete () |
Can be used as a hook once all the parameters in a module have been setup and/or displayed in the SAP. More... | |
void | RemoveLaunchedVessels () |
Removes all entries from the VesselSituationList that have been Launched. 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 | Save (ConfigNode node) |
void | UpdateNodeBodyUI () |
Updates the node body parameters More... | |
void | UpdateVesselBuildValues () |
This will update the number of vessels that have been built in this editor session and will set the current one to the next in line. More... | |
bool | VesselSituationLaunched (VesselSituation situation) |
Sets the Vessel in the passed in VesselSituation to Launched in the Mission Node it is part of. Use RemoveLaunchedVessels() to remove all Launched vessels from the VesselSituationList. More... | |
bool | VesselSituationListContains (uint persistentId) |
Searches the VesselSituationList for an entry that matches the passed in vessel persistentId. More... | |
bool | VesselSituationReadyToLaunch (VesselSituation situation) |
Sets the Vessel in the passed in VesselSituation to readyToLaunch in the Mission Node it is part of. More... | |
bool | VesselSituationRevertLaunch (VesselSituation situation) |
Sets the Vessel in the passed in VesselSituation to not readyToLaunch in the Mission Node it is part of. More... | |
Public Attributes | |
bool | autoGenerateCrew = false |
Specifies if the mission should autogenerate a crew list for the vessels or not, if not you need to specify a crew list More... | |
KerbalRoster | crewRoster |
Mission start Crew Roster, this is used when the autoGeneratedCrew value is set to false. More... | |
GameParameters | gameParameters |
The difficulty parameters for the mission game when its started More... | |
Mission | mission |
The Mission this Situation belongs to. More... | |
MissionInstructor | missionInstructor |
The Instructor that will appear in the dialog More... | |
string | missionRoster = "" |
Button to open Mission Roster More... | |
List< string > | parametersDisplayedInSAP |
The parameters displayed in the Settings Action Pane More... | |
MissionPartFilter | partFilter |
Part filter applied mission wide to all vessels More... | |
int | resourceSeed |
int | rocMissionSeed |
bool | showBriefing |
StartTypeEnum | startType = StartTypeEnum.VesselList |
The scene/situation the mission will start in More... | |
double | startUT |
Start time for the mission. More... | |
uint | startVesselID = 0u |
The starting situation of the vessel. More... | |
Properties | |
VesselSituation | CurrentVesselToBuild [get] |
Returns the VesselSituation of the current vessel selected/being built in the VAB/SPH or null More... | |
uint | CurrentVesselToBuildId [get] |
The current vesselSituation being Built/Selected More... | |
int | NumberofVesselsPending [get] |
Returns the number of player built vessels that are pending build. IE Have not had the Launch button pressed in the VAB/SPH and have not been spawned into the flight scene. More... | |
EditorFacility | startFacility [get] |
List< IActionModule > | StartingActions [get] |
GameScenes | startScene [get] |
What GameScene the situation translates to. More... | |
bool | VesselsArePending [get] |
Returns true if there are any vessels that have to be built. More... | |
int | VesselsBuilt [get] |
The number of vessels that have been built from the list and had the Launch Button pressed in the VAB/SPH More... | |
DictionaryValueList < VesselSituation, Guid > | VesselSituationList [get] |
|
inline |
|
inline |
|
inline |
Adds a MENode to the nodesWithVesselToBuild list for Vessel Creation nodes. Checks if the passed in node is atually part of this mission. The list will be processed once the player goes to the VAB/SPH to begin building vessels. Will only add the node for processing if the current game is a Mission in Play.
node | The node with an ActionCreateVessel attached to it. |
|
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.
|
inline |
Perform all the cleaning operations that we need before the module is destroyed.
|
inline |
|
inline |
Fills the starting vesselList with the docked CreateVessel nodes attached to the startNode. Will check first if an entry with matching persistentId already is in the list and will NOT replace it by default.
missionStartNode | The Node that will be searched for docked vesselnodes to add to the list |
replaceIfFound | Set to true will force existing entries to be replaced |
fillAllNodes | Will fill the lists with ALL nodes if true, and if true - will create placeholder craft files for all player created vessels in the mission; otherwise will only fill the lists with the nodes docked to the start node (Default) |
|
inline |
Get the list off available vessel situtations
|
inline |
Get the name of the module
Implements Expansions.Missions.IMENodeDisplay.
|
inline |
Get the information to be displayed about the module in the tooltip.
Implements Expansions.Missions.IMENodeDisplay.
|
inline |
Gets some more parameters to display.
Implements Expansions.Missions.IMENodeDisplay.
|
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.
|
inline |
Searches the VesselSituationList for an entry that matches the passed in vessel persistentId.
PersistentId | vessel PersistentId |
|
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.
|
inline |
Perform all the setup operations that we need when the module is initialised in the mission builder.
|
inline |
Initialize the situation and actions of the mission
|
inline |
Implements IConfigNode.
|
inline |
Can be used as a hook once all the parameters in a module have been setup and/or displayed in the SAP.
Implements Expansions.Missions.IMENodeDisplay.
|
inline |
Removes all entries from the VesselSituationList that have been Launched.
|
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 |
|
inline |
Implements IConfigNode.
|
inline |
Updates the node body parameters
Implements Expansions.Missions.IMENodeDisplay.
|
inline |
This will update the number of vessels that have been built in this editor session and will set the current one to the next in line.
|
inline |
Sets the Vessel in the passed in VesselSituation to Launched in the Mission Node it is part of. Use RemoveLaunchedVessels() to remove all Launched vessels from the VesselSituationList.
situation | The VesselSituation for the vessel to set to ready to launched. |
|
inline |
Searches the VesselSituationList for an entry that matches the passed in vessel persistentId.
persistentId | vessel PersistentId |
|
inline |
Sets the Vessel in the passed in VesselSituation to readyToLaunch in the Mission Node it is part of.
situation | The VesselSituation for the vessel to set to ready to launch. |
|
inline |
Sets the Vessel in the passed in VesselSituation to not readyToLaunch in the Mission Node it is part of.
situation | The VesselSituation for the vessel to set to not ready to launch. |
bool Expansions.Missions.MissionSituation.autoGenerateCrew = false |
Specifies if the mission should autogenerate a crew list for the vessels or not, if not you need to specify a crew list
KerbalRoster Expansions.Missions.MissionSituation.crewRoster |
GameParameters Expansions.Missions.MissionSituation.gameParameters |
The difficulty parameters for the mission game when its started
MissionInstructor Expansions.Missions.MissionSituation.missionInstructor |
The Instructor that will appear in the dialog
string Expansions.Missions.MissionSituation.missionRoster = "" |
Button to open Mission Roster
List<string> Expansions.Missions.MissionSituation.parametersDisplayedInSAP |
The parameters displayed in the Settings Action Pane
MissionPartFilter Expansions.Missions.MissionSituation.partFilter |
Part filter applied mission wide to all vessels
int Expansions.Missions.MissionSituation.resourceSeed |
int Expansions.Missions.MissionSituation.rocMissionSeed |
bool Expansions.Missions.MissionSituation.showBriefing |
StartTypeEnum Expansions.Missions.MissionSituation.startType = StartTypeEnum.VesselList |
The scene/situation the mission will start in
double Expansions.Missions.MissionSituation.startUT |
Start time for the mission.
uint Expansions.Missions.MissionSituation.startVesselID = 0u |
The starting situation of the vessel.
|
get |
Returns the VesselSituation of the current vessel selected/being built in the VAB/SPH or null
|
get |
The current vesselSituation being Built/Selected
|
get |
Returns the number of player built vessels that are pending build. IE Have not had the Launch button pressed in the VAB/SPH and have not been spawned into the flight scene.
|
get |
|
get |
|
get |
What GameScene the situation translates to.
|
get |
Returns true if there are any vessels that have to be built.
|
get |
The number of vessels that have been built from the list and had the Launch Button pressed in the VAB/SPH
|
get |