Skip to main content

Module map

Module map 

Source
Expand description

What the campaign AI reads from the map files: the regions of map_data.esf (land regions, then seas), their areas and connections, and the high-level pathfinder nodes of hlp_data.esf.

Structs§

AreaGroups
The connectivity group of each cell (land masses and seas), from the group of the area it’s in. Seas without areas take the most common group of the sea areas around them.
MapRegion
A region of the map (REGION_DATA), land or sea.
PathfinderNode
A high-level pathfinder node: a cell where the AI can place a region.

Functions§

pathfinder_nodes
Reads the nodes of the high-level pathfinder of a hlp_data.esf, by region index.
theatre_key
Returns the key of the map’s theatre (REGIONS_DATA/theatres/CAMPAIGN_THEATRE’s string).