Skip to main content

write_technologies

Function write_technologies 

Source
pub fn write_technologies(
    layout: &StartposLayout,
    plan: &CaiPlan,
    technologies: &[Vec<String>],
) -> Result<RecordNode>
Expand description

Writes the technologies list: each faction’s technologies, faction by faction.

§Arguments

  • layout - Record layouts.
  • plan - Component ids.
  • technologies - Technology keys of each world faction’s tree, in plan order.

§Errors

Returns an error if the layout lacks the records.