Skip to main content

sea_regions

Function sea_regions 

Source
pub fn sea_regions(
    map: &RegionMap,
    layouts: &[SettlementLayout],
    index: &CampaignIndex,
) -> Vec<SeaRegion>
Expand description

Returns the sea regions with ports: every sea a port zone cell lies in, with the port regions of each faction.

§Arguments

  • map - Region map of the campaign map.
  • layouts - Settlement layouts of the campaign map (their port slot zones).
  • index - The campaign’s startpos rows.

§Returns

The seas in map order. Seas without ports (rivers, lakes) are left out.