Skip to main content

generate_startpos

Function generate_startpos 

Source
pub fn generate_startpos(
    sources: &StartposSources,
    layout: &StartposLayout,
) -> Result<ESF>
Expand description

Generates the startpos of a campaign.

§Arguments

  • sources - What the startpos is built from.
  • layout - Record layouts of the game.

§Errors

Returns an error if the sources lack data the build needs.