RACECLASSINFO
struct · spell · 32 bytes
- Meaning
- Holds a race-class index node: skill line, two links, and a run of SkillRaceClassInfo rows
- Confidence
- verified, proof one
- Finding
- spell/tables#startup-build-of-the-indexes
Finding: Startup build of the indexes in spell: tables
SpellTableInitialize runs once, called from ClientInitializeGame (0x401570). It walks
SkillRaceClassInfo.dbc in row order and adds one race-class node per run of consecutive rows
with equal skill line (+0x04): the node's hash is the skill line, +0x18 the run's first row and
+0x1c its length. It does the same over SkillCostsData.dbc, keyed by +0x04, into the cost
index. Then, for every CharBaseInfo.dbc row whose race byte (+0x00) is an id ChrRaces.dbc
holds, it offers every SkillLineAbility.dbc row to 0x6ddbe0 with that race and the row's class
byte (+0x01). A key that reappears after another key starts a second node.
The derivation is in the doc.
Fields 6
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0000 | 4 | uint32_t | m_hashVal | Holds the hash, the skill line of the run | verified, proof one | spell/tables#startup-build-of-the-indexes |
0x0004 | 8 | void *[2] | m_linkToSlot | Holds the link in the node's slot list, offset 4 | verified, proof one | spell/tables#hash-table-layout |
0x000c | 8 | void *[2] | m_linkToFull | Holds the link in the table's node list, offset 0x0c | verified, proof one | spell/tables#hash-table-layout |
0x0014 | 1 | uint8_t | m_key | Holds an uninitialized stack byte the build copies; nothing reads it | verified, proof one | spell/tables#startup-build-of-the-indexes |
0x0018 | 4 | void * | m_firstRow | Holds the run's first SkillRaceClassInfo.dbc row | verified, proof one | spell/tables#startup-build-of-the-indexes |
0x001c | 4 | uint32_t | m_rowCount | Holds the number of consecutive rows in the run | verified, proof one | spell/tables#startup-build-of-the-indexes |