pub fn extract_tables(
startpos: &ESF,
layout: &StartposLayout,
tables: &StartposTables,
) -> Result<ExtractedTables>Expand description
Extracts the start_pos_* tables of a campaign from its startpos.
§Arguments
startpos- The startpos.layout- Record layouts of the game (the ones the startpos is written with).tables- Game tables with theEXTRACTION_TABLES.
§Returns
The rows of every table the startpos keeps something of, and the victory objectives.
§Errors
Returns an error if the startpos doesn’t fit the layouts, or a table is missing.