benilla-re systems structs docs

CGPlayer_C::SetFieldPointers

function · objectlayer · primitive

Address
0x5dd2a0 · 54 bytes, up to 0x5dd2d5
Signature
void __thiscall (CGPlayer_C *this, uint32_t *fields, uint32_t *copy)
Meaning
Runs the unit's storage, then points +0xe68 at field 188 and +0xe6c past the unit's 170 watched fields
Confidence
verified, proof one
Finding
objectlayer/classes#field-storage

Finding: Field storage in objectlayer: classes

0x613980 stores the field array pointer at +0x8 and the second per-field array at +0xc. 0x6142e0 writes one field by index and returns 1. Neither checks the index. The unit, game object, dynamic object and corpse storage functions then point +0x110 at field 6, their own section, and +0x114 at their section's watch copy, past the object's 3; the player's runs the unit's and points +0xe68 at field 188 and +0xe6c past the unit's 170 watched fields. Code of these classes reads its own fields through these pointers: [[unit+0x110]+4·k] is field 6 + k.

The derivation is in the doc.

Callers 1

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.