Skip to main content

Module settlements

Module settlements 

Source
Expand description

Settlement layouts of a startpos (REGION/SETTLEMENT/SETTLEMENT_EXPANSION_MANAGER/SETTLEMENT_EXPANSION_MAP_DATA), built from the campaign map’s map_data.esf (REGION_DATA/SETTLEMENT_INFO).

Verified against Attila’s main campaign (186 settlements, 983 slots): slot ids, kinds, positions, footprints, zones, walls and touching slots match the game-built startpos, and so do the sprawl cells and their footprint/zone flags. The edge pieces of the sprawl cells need the cells’ regions, so the world writer computes them.

Structs§

SettlementLayout
Layout of a settlement: its building slots and its sprawl cells.
SlotLayout
A building slot of a settlement.
SprawlCell
A cell of the sprawl area of a settlement.

Enums§

SlotKind
Whether a slot is one of the two primary slots or a secondary one.