Creates a new mission
The task tree that the player has to complete to finish the mission
The reward that the player gets for completing the mission
The space station that gave the mission
The type of the mission (useful for displaying localized strings)
Readonly
missionThe space station that gave the mission
Readonly
missionThe type of the mission (useful for displaying localized strings)
Readonly
rewardThe reward that the player gets for completing the mission
Readonly
treeThe task tree that the player has to complete to finish the mission
Returns a string describing the mission using the mission tree and the origin seed
Describes the next task that the player has to complete given the current mission context
The current mission context
The keyboard layout map to localize the keys
Returns true if the two missions have the same task tree
The other mission to compare to
Returns the reward that the player gets for completing the mission
Returns all the current target systems that the player has to visit to complete the mission
Returns the localized string for the mission type
Returns true if the mission is completed, false otherwise
Serializes the mission to a JSON object for storage in save files
Updates the mission state recursively given the current mission context
The current mission context
Static
Deserialize
General mission abstraction. The mission can have any arbitrary task tree and reward. If you want to create new mission archetypes, you should register a new enum variant in MissionType