pub fn placement(
tables: &StartposTables,
index: &CampaignIndex,
character: &CharacterEntry,
) -> Result<Placement>Expand description
Returns where a character starts on the campaign map. An army stands where its general starts.
§Arguments
tables- Tables withstart_pos_character_to_settlements.index- The campaign’s startpos rows.character- The character.
§Returns
The cell given in the table if any; otherwise the first linked settlement owned by the character’s faction (links to unknown settlements are ignored); otherwise the faction’s first army for factions without capital; otherwise off the map.
§Errors
Returns an error if a table or column is missing.