ObjectClearFields
function · objectlayer · primitive
- Address
0x466c70· 327 bytes, up to0x466db6- 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
- ObjectCreateBlock objectlayer
Callees 10
- CGPlayer_C::SetActivePlayerExtra objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- CGDynamicObject_C::SetFieldPointers objectlayer
- CGCorpse_C::SetFieldPointers objectlayer
- CGContainer_C::SetFieldPointers objectlayer
- CGItem_C::SetFieldPointers objectlayer
- CGPlayer_C::SetFieldPointers objectlayer
- CGGameObject_C::SetFieldPointers objectlayer
- CGUnit_C::SetFieldPointers objectlayer
- CGObject_C::SetStorage objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.