pub fn legacies(
tables: &StartposTables,
index: &CampaignIndex,
faction: &FactionEntry,
forces: &[LegacyForce],
overrides: &HashSet<String>,
) -> Result<Vec<Legacy>>Expand description
Returns the legacies of a faction’s forces.
§Arguments
tables- Tables withmilitary_force_legacy_namesandmilitary_force_legacy_emblems.index- The campaign’s startpos rows.faction- The faction.forces- The faction’s forces, in startpos order.overrides-start_pos_charactersids of the characters with alegacy_overridetext (a localised column, so it comes from the campaign’s localisation, not from the table).
§Returns
One legacy per force, in the same order.
§Errors
Returns an error if a table or column is missing.