-
Notifications
You must be signed in to change notification settings - Fork 14
BaseOutcome
The BaseOutcome class is the basis for all outcome processing. An outcome is used with the resource processors as well as by the event system. It represents the consequences (or benefits) of a process result as well as the actions to take when an event's preconditions are met.
Flag to indicate whether or not the outcome can be randomly selected. Requires random outcomes to be turned on. If it isn't then the outcome is always applied.
Flag to indicate whether or not to select a random crew member for the outcome instead of applying the outcome to the entire crew.
Optional message to display to the player.
Optional list of child outcomes to apply when the parent outcome is applied. Child outcomes use same vessel/kerbal as the parent.
Initializes a new instance of the class.
Initializes a new instance of the class.
node: A ConfigNode containing initialization parameters.
Initializes a new instance of the class.
canBeRandom: If set to true, the outcome can be randomly selected.
Initializes a new instance of the class.
canBeRandom: If set to true, the outcome can be randomly selected.
playerMessage: A string containing a message to the player that is shown when the outcome is applied..
Loads the configuration
node: A ConfigNode containing data to load.
Indicates whether or not the outcome is enabled.
true if inabled, false if not.
Applies the outcome to the vessel's crew
vessel: The Vessel being processed.
result: The Result of the processing attempt.
Removes the outcome from the vessel's crew.