Skip to main content

rebel_setup

Function rebel_setup 

Source
pub fn rebel_setup(
    tables: &StartposTables,
    region: &RegionEntry,
) -> Result<Option<RebelSetup>>
Expand description

Returns the rebel setup of a region.

§Arguments

  • tables - Tables with start_pos_regions, start_pos_region_religions and factions.
  • region - The region.

§Returns

The setup for regions owned by the rebels, None for the others (which store the default setup).

§Errors

Returns an error if a table or column is missing, or the rebel faction isn’t in factions.