Skip to main content

write_faction_seas

Function write_faction_seas 

Source
pub fn write_faction_seas(
    layout: &StartposLayout,
    plan: &CaiPlan,
    world: &WorldView,
    map_regions: &[MapRegion],
) -> Result<RecordNode>
Expand description

Writes the list of the factions’ views of the seas: each sea’s views, sea by sea.

§Arguments

  • layout - Record layouts.
  • plan - Component ids.
  • world - The world’s objects.
  • map_regions - Regions of the map, in map order.

§Errors

Returns an error if the layout lacks the records.