Skip to main content

write_trade_segments

Function write_trade_segments 

Source
pub fn write_trade_segments(
    layout: &StartposLayout,
    plan: &CaiPlan,
    splines: usize,
) -> Result<RecordNode>
Expand description

Writes the trade route segments list: one per trade spline, holding its index.

§Arguments

  • layout - Record layouts.
  • plan - Component ids.
  • splines - Number of trade splines of the map.

§Errors

Returns an error if the layout lacks the records.