pub fn victory_factions(
tables: &StartposTables,
index: &CampaignIndex,
world: &WorldView,
plan: &CaiPlan,
) -> Result<HashMap<String, Vec<u32>>>Expand description
Returns the components of the factions with victory conditions on each region, by region key, in faction order.
§Arguments
tables- Tables withstart_pos_victory_conditions.index- The campaign’s startpos rows.world- The world’s objects.plan- Component ids.
§Errors
Returns an error if a table or column is missing.