Skip to main content

Module regions

Module regions 

Source
Expand description

Writer of the AI’s theatre (CAI_WORLD_THEATRES), regions (CAI_WORLD_REGIONS) and their HLCIs (CAI_WORLD_REGION_HLCIS): one region per map region (land, then seas), each split into HLCIs, the connected groups of its areas.

Structs§

LinkInputs
What the regions’ links are built from.
RegionLinks
What a region refers to beyond the map: AI objects of the world mirror.

Constants§

THEATRE_VALUE
Theatre key of single-theatre campaigns, from map_data.esf’s theatre.

Functions§

region_links
Returns what each map region refers to beyond the map, in map order.
region_positions
Returns where the AI places each region (see [region_node]), or (0, 0) for regions without nodes.
write_hlcis
Writes the HLCIs list: each region’s HLCIs, region by region.
write_regions
Writes the regions list.
write_theatres
Writes the theatres list: one theatre holding every army, fleet and region.