-
Notifications
You must be signed in to change notification settings - Fork 14
AstronautData
This class contains data related to a kerbal. Information includes roster resources (characteristics of the kerbal akin to Courage and Stupidity), a condition summary specifying what states the kerbal is in, a list of disqualified conditions that will auto-fail precondition checks, a list of processor successes and failures, a key-value map suitable for tracking states in the event system, an exempt flag that exempts the kerbal from all outcomes.
Name of the kerbal.
The kerba's current experience trait.
Timestamp of when the astronaut data was last update.
Flag to indicate that the kerbal is exempt from outcomes.
Summary of all the conditions that the kerbal currently has. If a condition in the summary is defined in a SKILL_LOSS_CONDITION config node, then the kerbal will lose its skills until the condition is cleared.
A map of key-value pairs.
Map of successful process cycles. The key is the name of the processor, the value is the number of successes.
Map of unsuccessfull process cycles. The key is the name of the processor, the value is the number of failures.
A map of roster resources (characteristics of the kerbal), similar to vessel resources.
Conditions that will automatically disqualify a precondition check.
Initializes a new instance of the class.
Loads the astronaut data from the config node supplied.
node: The ConfigNode to read data from.
A map keyed kerbal name that contains astronaut data.
Saves persistent astronaut data to the supplied config node.
crewData: A map of astronaut data, keyed by kerbal name.
node: The ConfigNode to save the data to.
Sets a disqualifier that will automatically fail a precondition check.
disqualifier: The name of the disqualifier to set.
Clears a disqualifier that will no longer fail a precondition check.
disqualifier: The name of the disqualifier to clear.
Sets a condition that could result in loss of skills if defined in a SKILL_LOSS_CONDITION config node. The condition will appear in the kerbal's condition summary in the status window.
condition: The name of the condition to set.
Clears a condition, removing it from the condition summary display. If the condition is defined in a SKILL_LOSS_CONDITION config node, and the kerbal has no other conditions that result from skill loss, then the kerbal will regain its skills.
condition: The name of the condition to clear.