benilla-re systems structs docs

ObjectClearFields

function · objectlayer · primitive

Address
0x466c70 · 327 bytes, up to 0x466db6
Signature
void __fastcall (uint32_t type, CGObject_C *object, uint32_t guidLow, uint32_t guidHigh)
Meaning
Points the object at its field array for its type and zeroes the array
Confidence
verified, proof two
Finding
objectlayer/update#creating-an-object
Test
objectlayer::zero_descriptor_block_difftest

Finding: Creating an object in objectlayer: update

The create pass looks the GUID up, reactivating it when it was released (manager). An existing object is updated by 0x466350: a unit applies the block's movement through 0x5ff070, with whether it is the active player; any other type reads and drops the movement fields. Its values are then written (Writing the values). A new object is allocated for its type, its field array zeroed, its type id and mask stored, its values written, and its class constructor run with the time and the movement block; it then joins the manager's object list.

The derivation is in the doc.

Callers 1

Callees 10

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