pub fn political_parties(
tables: &StartposTables,
faction: &str,
) -> Result<Vec<PoliticalParty>>Expand description
Returns the political parties of a faction with their starting power.
The faction’s senator_total is split between its parties (faction_political_parties_junctions) in
proportion to their initial_power, or evenly if they all start with no power.
§Arguments
tables- Tables withfaction_political_parties_junctions,political_partiesandfactions.faction- Faction key.
§Returns
The parties, in table order. Empty for factions without parties.
§Errors
Returns an error if a table or column is missing.