![]() |
Kerbal Space Program
1.12.4
|
Public Member Functions | |
| bool | AddCrewMember (ProtoCrewMember crew) |
| Will add new ProtoCrewMember to the roster. After a check is done on the first name. Duplicate first names will not be added. More... | |
| bool | ChangeName (string oldName, string newName) |
| bool | ChangeNameCalledFromPCM (ProtoCrewMember crew, string oldName, string newName) |
| DO NOT CALL DIRECTLY. Should only be called from PCM itself via PCM.ChangeName() More... | |
| void | CheckRosterRespawn (double universalTime, GameParameters parameters) |
| Check if any kerbal in the roster can be respawned More... | |
| void | CheckRosterRespawn () |
| Check for roster spawn with default values More... | |
| VesselCrewManifest | DefaultCrewForVessel (ConfigNode vesselNode, VesselCrewManifest previous=null, bool autohire=true, bool usePreviousVCMToFill=false) |
| Generate a default manifest for the current vessel. Optionally provide an already existing manifest to avoid reassigning crews already seated. More... | |
| bool | Exists (string name) |
| int | GetActiveCrewCount () |
| int | GetAssignedCrewCount () |
| int | GetAvailableCrewCount () |
| int | GetKIACrewCount () |
| int | GetLostCrewCount () |
| int | GetMissingCrewCount () |
| ProtoCrewMember | GetNewKerbal (ProtoCrewMember.KerbalType type=ProtoCrewMember.KerbalType.Crew) |
| ProtoCrewMember | GetNextApplicant () |
| ProtoCrewMember | GetNextAvailableKerbal (ProtoCrewMember.KerbalType type=ProtoCrewMember.KerbalType.Crew) |
| ProtoCrewMember | GetNextOrNewKerbal (ProtoCrewMember.KerbalType type=ProtoCrewMember.KerbalType.Crew) |
| void | HireApplicant (ProtoCrewMember ap) |
| int | IndexOf (ProtoCrewMember pcm) |
| void | Init (Game st) |
| KerbalRoster (Game.Modes mode) | |
| KerbalRoster (ConfigNode node, Game.Modes mode) | |
| IEnumerable< ProtoCrewMember > | Kerbals (ProtoCrewMember.KerbalType type, params ProtoCrewMember.RosterStatus[] status) |
| IEnumerable< ProtoCrewMember > | Kerbals (params ProtoCrewMember.RosterStatus[] status) |
| void | PCMUpdate (double UT) |
| bool | Remove (string name) |
| bool | Remove (ProtoCrewMember crew) |
| void | Remove (int i) |
| void | RemoveDead (ProtoCrewMember ap) |
| void | RemoveMIA (ProtoCrewMember ap) |
| void | RepopulateCrewRoster (int rosterSize) |
| Repopulates the crew roster with stock kerbals so it always have at least the number of kerbals defined in rosterSize More... | |
| void | SackAvailable (ProtoCrewMember ap) |
| void | Save (ConfigNode node) |
| void | Update (double UT) |
| void | UpdateExperience () |
| Recalculate the experience of all the crew members in the roster to ensure that they're correct. More... | |
| void | ValidateAssignments (Game st) |
| Validates all assigned crews against being on non-existing vessels. May never happen, but it was a bug once so it might still be a thing now. More... | |
Static Public Member Functions | |
| static void | AddExperienceType (string type, string typeName, float notHomeValue, float homeValue=0.0f) |
| static float | CalculateExperience (params FlightLog[] logs) |
| static int | CalculateExperienceLevel (float xp) |
| static void | CheatExperience () |
| static string | GenerateExperienceLog (FlightLog log) |
| static KerbalRoster | GenerateInitialCrewRoster (Game.Modes mode) |
| static System.Type | GetExperienceEffectType (string typeName) |
| static float | GetExperienceLevelRequirement (int level) |
| static int | GetExperienceMaxLevel () |
| static System.Type | GetExperienceTraitType (string typeName) |
| static string | GetLocalizedExperienceTraitName (string queriedTrait) |
| static void | SetExperienceLevel (ProtoCrewMember pcm, int level) |
| static void | SetExperienceLevel (ProtoCrewMember pcm, int level, GameParameters parameters, Game.Modes mode) |
| static void | SetExperienceTrait (ProtoCrewMember pcm, string traitName=null) |
| static bool | TryGetExperienceTraitConfig (string traitName, out ExperienceTraitConfig traitConfig) |
| Try and get the config for a trait with this name More... | |
Static Public Attributes | |
| static string | engineerTrait = "Engineer" |
| static string | pilotTrait = "Pilot" |
| static string | scientistTrait = "Scientist" |
| static string | touristTrait = "Tourist" |
Properties | |
| IEnumerable< ProtoCrewMember > | Applicants [get] |
| int | Count [get] |
| IEnumerable< ProtoCrewMember > | Crew [get] |
| Game.Modes | GameMode [get] |
| ProtoCrewMember | this[int index] [get] |
| ProtoCrewMember | this[string name] [get] |
| IEnumerable< ProtoCrewMember > | Tourist [get] |
| IEnumerable< ProtoCrewMember > | Unowned [get] |
|
inline |
|
inline |
|
inline |
Will add new ProtoCrewMember to the roster. After a check is done on the first name. Duplicate first names will not be added.
| crew |
|
inlinestatic |
|
inlinestatic |
< go through each flight and compile it's targets and best achievements to the lists
|
inlinestatic |
|
inline |
|
inline |
DO NOT CALL DIRECTLY. Should only be called from PCM itself via PCM.ChangeName()
| crew | |
| oldName | |
| newName |
|
inlinestatic |
|
inline |
Check if any kerbal in the roster can be respawned
| universalTime | Time passed |
| parameters | Used internally to check for game settings (missingKerbalsRespawn) |
|
inline |
Check for roster spawn with default values
|
inline |
Generate a default manifest for the current vessel. Optionally provide an already existing manifest to avoid reassigning crews already seated.
| vesselNode | Vessel to be populated |
| previous | Already existing crew manifest. |
| autohire | Hire more kerbals to fill seats if necessary. |
| usePreviousVCMToFill | Instead of avoiding using crew members in the crew manifest, use them and sit them in the same seats. (We use this to fill in empty seats in a crewed part by passing in the half-filled crew manifest.) |
< find first crewable commandable part and fill it with all available crew
|
inline |
|
inlinestatic |
< go through each flight and compile it's targets and best achievements to the lists
|
inlinestatic |
< force-set the traits
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
< check respawning kerbals to see if they're good to go again
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Repopulates the crew roster with stock kerbals so it always have at least the number of kerbals defined in rosterSize
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
< This method necessarily clears a kerbal's career log. Use it sparingly, for debug and cheats.
|
inlinestatic |
|
inlinestatic |
Try and get the config for a trait with this name
| traitName | name of the trait |
| traitConfig | The traitConfig item if successful, null if not |
|
inline |
|
inline |
Recalculate the experience of all the crew members in the roster to ensure that they're correct.
|
inline |
Validates all assigned crews against being on non-existing vessels. May never happen, but it was a bug once so it might still be a thing now.
| st |
|
static |
|
static |
|
static |
|
static |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
1.8.7