Skip to main content

Module factions

Module factions 

Source
Expand description

Writer of the AI’s factions (CAI_WORLD_FACTIONS), technology trees (CAI_WORLD_TECHNOLOGY_TREES) and technologies (CAI_WORLD_TECHNOLOGIES).

Structs§

FactionLinks
What an AI faction refers to.

Functions§

capitals
Returns the component of the faction whose capital each map region is, by map region index.
faction_links
Returns what each AI faction refers to: the world factions, then the rebels.
victory_factions
Returns the components of the factions with victory conditions on each region, by region key, in faction order.
write_factions
Writes the factions list: every world faction, then the rebels.
write_technologies
Writes the technologies list: each faction’s technologies, faction by faction.
write_technology_trees
Writes the technology trees list, one per faction with a tree.