Skip to main content

Module region_map

Module region_map 

Source
Expand description

Region of each cell of the campaign map, from map_data.esf (REGIONS_DATA/theatres/CAMPAIGN_THEATRE/HEX_MAP_DATA).

The data has 7 bytes per cell, row by row; the first byte is the index of the cell’s region in REGIONS_DATA/REGIONS_BLOCK (land regions, then seas and rivers), and the last two are hex-edge masks (the startpos builds the road pieces of settlement sprawls from them). The meaning of the other bytes isn’t known. Verified on Attila’s main campaign: every garrison stands on a cell of its own region. Prefer it over the map’s lookup image, which also paints seas the map data leaves empty.

Structs§

RegionMap
Region of each cell of the campaign map.