Skip to main content

emblem_pool

Function emblem_pool 

Source
pub fn emblem_pool(
    tables: &StartposTables,
    index: &CampaignIndex,
    faction: &FactionEntry,
    is_army: bool,
) -> Result<Vec<String>>
Expand description

Returns the emblems available to a faction’s armies or navies.

They’re the rows of the faction, of its subculture (rows without faction) and of its culture (rows without faction and subculture), with no campaign or the current one.

§Arguments

  • tables - Tables with military_force_legacy_emblems.
  • index - The campaign’s startpos rows.
  • faction - The faction.
  • is_army - true for army emblems, false for navy emblems.

§Returns

The emblem keys, in table order.

§Errors

Returns an error if a table or column is missing.