Skip to main content

Module compare

Module compare 

Source
Expand description

Comparison of the tables extracted from a startpos with the tables it was built from.

Every value the extraction gets back differently is something the build lost or changed on its way into the startpos. Rows are matched by what they describe, not by their ids (which the extraction renumbers): ids that reference factions, regions, settlements and characters are replaced by their keys first. Characters are told apart by faction, names and agent type.

Only the columns the extraction fills are compared.

Structs§

ColumnComparison
How the values of one column compare in the matched rows.
TableComparison
How the rows of one table of the extraction compare with the original ones.

Functions§

compare_tables
Compares the tables extracted from a startpos with the tables it was built from.