Skip to main content

Module missions

Module missions 

Source
Expand description

Mission scripts of a campaign (victory_objectives.txt, missions.txt) and the victory objectives they define.

A script is a list of statements: words ended by ; (total 80;), or words followed by a block of statements (objective { ... }). // starts a comment that runs to the end of the line. write_victory_objectives writes victory objectives back as a script.

Structs§

ScriptItem
A statement of a mission script.
VictoryMission
A victory mission. Completing its objectives wins the game.
VictoryObjectives
The victory missions of a faction in a kind of campaign (a victory_objective block).

Enums§

CampaignType
Kinds of campaign with their own victory missions.
MissionObjective
An objective of a mission, by its script type. total is the amount the objective asks for.

Functions§

parse_script
Parses a mission script into its statements.
parse_victory_objectives
Parses the victory objectives of a victory_objectives.txt script.
write_victory_objectives
Writes victory objectives as a victory_objectives.txt script, which parse_victory_objectives reads back.