benilla-re systems structs docs

CGUnit_C::~CGUnit_C

function · objectlayer · primitive

Address
0x5fb5e0 · 593 bytes, up to 0x5fb830
Meaning
Tears a unit down: sounds, marker, plate, name, models, effects, mover, name queries, CMovement, watchers
Confidence
verified, proof one
Finding
objectlayer/units#the-unit-object

Finding: The unit object in objectlayer: units

0x5fad50(a, block) builds the object part, points +0x118 at the CMovement it builds at +0x9a8, empties the 182 watcher lists from +0x11c, sets the unit members and the vtable, and reads the update's movement block (0x5ff070). 0x5fb5e0 tears it down in the reverse order. Vtable slots 0 to 3 are the deleting destructor, release, reactivation and the post-update pass.

The derivation is in the doc.

Callers 2

Callees 25

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