Skip to main content

write_theatres

Function write_theatres 

Source
pub fn write_theatres(
    layout: &StartposLayout,
    plan: &CaiPlan,
    key: &str,
    mobiles: Vec<u32>,
) -> Result<RecordNode>
Expand description

Writes the theatres list: one theatre holding every army, fleet and region.

§Arguments

  • layout - Record layouts.
  • plan - Component ids.
  • key - Theatre key (map_data.esf’s theatre).
  • mobiles - Components of every army and fleet.

§Errors

Returns an error if the layout lacks the records.