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 withstart_pos_factionsandstart_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.