Skip to main content

port_cells

Function port_cells 

Source
pub fn port_cells(
    world: &WorldView,
    map_regions: &[MapRegion],
    groups: &AreaGroups<'_>,
) -> HashMap<u32, HexCell>
Expand description

Returns the cell where the AI places the port of each garrison residence’s settlement.

§Arguments

  • world - The world’s objects.
  • map_regions - Regions of the map, in map order.
  • groups - Cell lookups of the map.