benilla-re systems structs docs

CGUnit_C::CGUnit_C

function · objectlayer · primitive

Address
0x5fad50 · 1137 bytes, up to 0x5fb1c0
Meaning
Builds a unit: the object, its CMovement at +0x9a8, 182 watcher lists, its members, vtable 0x80c4f8
Confidence
verified, proof one
Finding
objectlayer/units#the-unit-object
Test
objectlayer::uh_low_hp_gate_difftest

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 5

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