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§
- Script
Item - A statement of a mission script.
- Victory
Mission - A victory mission. Completing its objectives wins the game.
- Victory
Objectives - The victory missions of a faction in a kind of campaign (a
victory_objectiveblock).
Enums§
- Campaign
Type - Kinds of campaign with their own victory missions.
- Mission
Objective - An objective of a mission, by its script
type.totalis 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.txtscript. - write_
victory_ objectives - Writes victory objectives as a
victory_objectives.txtscript, whichparse_victory_objectivesreads back.