pub fn load_tables(
dependencies: &Dependencies,
pack: &Pack,
schema: &Schema,
) -> Result<StartposTables>Expand description
Loads the tables of a startpos build: the ones the build reads, every start_pos_* table of the schema with the
tables it references, for validation, and the ones the extraction of tables from a startpos reads.
Each table merges the game’s fragments and then the pack’s, in load order: a row replaces an earlier row with the same key. Tables neither has come from the game’s Assembly Kit.
§Arguments
dependencies- The game’s files.pack- Pack with the campaign’s startpos tables.schema- Schema of the game, to decode the tables.
§Errors
Returns an error if a table can’t be decoded, or its fragments don’t share their columns.