ITEMCOOLDOWNHASHNODE
struct · spell · 36 bytes
- Meaning
- Holds one item-cooldown hash node: key, slot link, node-list link and payload
- Confidence
- verified, proof one
- Finding
- spell/cooldowns#item-cooldown-table
Finding: Item cooldown table in spell: cooldowns
0xceca60 is a hash table with the vtable 0x811904: a list of every node (link offset 0x0c),
a counter, an array of 12-byte slot lists (count +0x18, data +0x1c), and a mask at +0x24, −1
with no slots. A node's slot is its key, +0x00, AND the mask; its slot link is at
+0x04. Slot 0 of the vtable unlinks a node from both lists and frees it; slot 1 allocates a node
of 0x24 bytes plus extra at a slot list's head; slot 2 destroys the table, freeing it on flag bit
0; slot 3 unlinks every node and frees the slot array. 0x6e9ad0 frees every node and empties
both history lists.
The derivation is in the doc.
Fields 7
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0000 | 4 | uint32_t | m_hashVal | Holds the key whose low bits pick the slot | verified, proof one | spell/cooldowns#item-cooldown-table-internals |
0x0004 | 8 | void *[2] | m_linkToSlot | Holds the node's link in its slot list | verified, proof one | spell/cooldowns#item-cooldown-table |
0x000c | 8 | void *[2] | m_linkToFull | Holds the node's link in the table's node list | verified, proof one | spell/cooldowns#item-cooldown-table |
0x0014 | 1 | uint8_t | m_flagHighByte | Holds the high byte of the insert's flag argument, set only on a new node; 0 from the spell go | verified, proof one | spell/go#pending-item-cooldowns |
0x0018 | 4 | uint32_t | m_spellId | Holds the spell whose item cooldown waits for the item record | verified, proof one | spell/go#pending-item-cooldowns |
0x001c | 4 | uint32_t | m_time | Holds the time the pending cooldown starts from | verified, proof one | spell/go#pending-item-cooldowns |
0x0020 | 1 | uint8_t | m_onHold | Holds the on-hold flag the pending cooldown is inserted with | verified, proof one | spell/go#pending-item-cooldowns |