Skip to main content

capitals

Function capitals 

Source
pub fn capitals(
    index: &CampaignIndex,
    world: &WorldView,
    plan: &CaiPlan,
    map_regions: &[MapRegion],
) -> HashMap<usize, u32>
Expand description

Returns the component of the faction whose capital each map region is, by map region index.

§Arguments

  • index - The campaign’s startpos rows.
  • world - The world’s objects.
  • plan - Component ids.
  • map_regions - Regions of the map, in map order.