Expand description
Database tables used to build a startpos, accessed by column name.
The startpos build reads the start_pos_* tables of the campaign pack plus many game tables (units, factions,
buildings…). This module collects them from decoded DB files, merging the fragments of each table, and
keeps the decoded values so numbers keep their exact binary value (the game copies some f32 values as is).
Structs§
- Row
- A row of a table.
- Startpos
Tables - The tables available to the startpos build, by table name (without the
_tablessuffix). - Table
- A table: its columns and the rows of every fragment.
Functions§
- hash_
set_ order - Returns keys in the order the game’s chained hash sets iterate them, given their insertion order.
- hash_
set_ order_ by - Returns items in the order the game’s chained hash sets iterate them, given their insertion order and their hash.
See
hash_set_order. - key_
hash - Returns the hash the game gives a table key (
FUN_100e9730in Thrones): the bytes from last to first, each sign-extended and xored in at a shift that cycles through 0, 8, 16 and 24 bits.