Skip to main content

name_pool

Function name_pool 

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

Returns the name localisation keys available to a faction’s armies or navies.

§Arguments

  • tables - Tables with military_force_legacy_names.
  • index - The campaign’s startpos rows.
  • faction - The faction.
  • for_army - true for army names, false for navy names.

§Returns

The keys, in table order.

§Errors

Returns an error if a table or column is missing.