benilla-re systems structs docs

SKILLCOSTSINFO

struct · spell · 32 bytes

Meaning
Holds a skill-cost index node: cost-set id, two links, and a run of SkillCostsData 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

offsetsizetypenamemeaningconfidencefinding
0x00004uint32_tm_hashValHolds the hash, the cost-set id of the runverified, proof onespell/tables#startup-build-of-the-indexes
0x00048void *[2]m_linkToSlotHolds the link in the node's slot list, offset 4verified, proof onespell/tables#hash-table-layout
0x000c8void *[2]m_linkToFullHolds the link in the table's node list, offset 0x0cverified, proof onespell/tables#hash-table-layout
0x00141uint8_tm_keyHolds an uninitialized stack byte the build copies; nothing reads itverified, proof onespell/tables#startup-build-of-the-indexes
0x00184void *m_firstRowHolds the run's first SkillCostsData.dbc rowverified, proof onespell/tables#startup-build-of-the-indexes
0x001c4uint32_tm_rowCountHolds the number of consecutive rows in the runverified, proof onespell/tables#startup-build-of-the-indexes