FieldCopyOffset
function · objectlayer · primitive
- Address
0x466830· 425 bytes, up to0x4669d8- Signature
uint32_t __fastcall (uint32_t type, uint32_t offset, uint32_t length, uint8_t isActivePlayer)- Meaning
- Returns the byte offset of a field's slot in the watch copy for a type
- Confidence
- verified, proof one
- Finding
- objectlayer/fields#watched-fields
- Test
objectlayer::field_dynamic_offset_difftest
Finding: Watched fields in objectlayer: fields
Each type watches a fixed subset of its fields and keeps 4 bytes per watched field after its field array: object 3, item 35, container 107, unit 170, the active player 1108 and another player 465, game object 8, dynamic object 3, corpse 6. A table per section lists the watched field indices; a field's slot in the copy is its position in that table plus the counts of the sections before it, times 4. The player's table has a part only the active player watches.
The derivation is in the doc.
Callers 2
- CopyWatchedFields objectlayer
- ClntObjMgrSetObjectMirrorHandler objectlayer
Callees 11
- CorpseWatchedIndex objectlayer
- DynamicObjectWatchedIndex objectlayer
- GameObjectWatchedIndex objectlayer
- PlayerWatchedIndex objectlayer
- UnitWatchedCount objectlayer
- UnitWatchedIndex objectlayer
- ContainerWatchedIndex objectlayer
- ItemWatchedCount objectlayer
- ItemWatchedIndex objectlayer
- ObjectWatchedCount objectlayer
- ObjectWatchedIndex objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.