Skip to main content

plan_levy_pools

Function plan_levy_pools 

Source
pub fn plan_levy_pools(
    inputs: &WorldInputs<'_>,
    plan: &WorldPlan<'_>,
    province_ids: &HashMap<String, u32>,
    first_pool: u32,
) -> Result<Vec<PlannedLevyPool>>
Expand description

Plans the levy pools of the overlords: their ids continue the province pools, in order of the subject’s and the province’s runtime ids.

§Arguments

  • inputs - Tables, startpos rows and layouts.
  • plan - Order and runtime ids of the world’s objects.
  • province_ids - Runtime ids of the provinces, by key.
  • first_pool - Id of the first levy pool.

§Errors

Returns an error if a table or column is missing.