benilla-re systems structs docs

OnObjectDestroy

function · objectlayer · primitive

Address
0x4674a0 · 464 bytes, up to 0x46766f
Signature
uint32_t __fastcall (void *param, uint32_t opcode, uint32_t time, CDataStore *msg)
Meaning
Handles SMSG_DESTROY_OBJECT: releases the object and then destroys and frees it at once
Confidence
verified, proof one
Name from
the community database (idb)
Finding
objectlayer/update#destroy-object

Finding: Destroy object in objectlayer: update

SMSG_DESTROY_OBJECT is a full u64 GUID. The client releases the object (manager), and when the release left it in the released table, destroys it at once: it unlinks it from that table and its type's reuse list, runs its vtable slot 0 with 0, and frees its memory, the active player's from the heap and any other's into its type's pool.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 6

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