ObjectFieldCount
function · objectlayer · primitive
- Address
0x465a80· 133 bytes, up to0x465b04- Signature
uint32_t __thiscall (void *this, uint32_t guidLow, uint32_t guidHigh)- Meaning
- Returns the field count for a type mask: 1282 for the active player and 486 for another player
- Confidence
- verified, proof one
- Finding
- objectlayer/update#values-block
- Test
objectlayer::updatefield_count_difftest
Finding: Values block in objectlayer: update
A values block is a u8 count n, n u32 mask words, then one u32 for each set mask bit, in
increasing field index. Bit i is word i >> 5, bit i & 31. Only indices below the object's
field count are visited: 6 for an object, 48 item, 122 container, 188 unit, 1282 for the active
player and 486 for another player, 26 game object, 16 dynamic object, 38 corpse. Words past
n count as zero up to 41; a bit set at or above the field count is never read, and its value
stays in the packet, out of step with the reader.
The derivation is in the doc.
Callers 2
- ObjectValuesNotify objectlayer
- ObjectApplyValues objectlayer
Callees 1
- ClntObjMgrGetActivePlayer objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.