Skip to main content

faction_links

Function faction_links 

Source
pub fn faction_links(
    tables: &StartposTables,
    index: &CampaignIndex,
    world: &WorldView,
    plan: &CaiPlan,
    map_regions: &[MapRegion],
) -> Result<Vec<FactionLinks>>
Expand description

Returns what each AI faction refers to: the world factions, then the rebels.

§Arguments

  • tables - Tables with start_pos_factions and start_pos_victory_conditions.
  • index - The campaign’s startpos rows.
  • world - The world’s objects.
  • plan - Component ids.
  • map_regions - Regions of the map, in map order.

§Errors

Returns an error if a table or column is missing.