Skip to main content

write_factions

Function write_factions 

Source
pub fn write_factions(
    layout: &StartposLayout,
    plan: &CaiPlan,
    links: &[FactionLinks],
) -> Result<RecordNode>
Expand description

Writes the factions list: every world faction, then the rebels.

§Arguments

  • layout - Record layouts.
  • plan - Component ids.
  • links - What each faction refers to, in plan order.

§Errors

Returns an error if the layout lacks the records.