benilla-re systems structs docs

ConstructBaseHandler

function · objectlayer · orchestration

Address
0x5f2f50 · 37 bytes, up to 0x5f2f74
Signature
void * __thiscall (void *this, CGGameObject_C *go)
Meaning
Builds a type handler's base: base vtable, the object, error 0xdb and range 5.0
Confidence
verified, proof one
Finding
objectlayer/gameobjects#building-the-type-handler
Test
objectlayer::go_handler_use_range_difftest

Finding: Building the type handler in objectlayer: game objects

The constructor switches on GAMEOBJECT_TYPE_ID from 0 to 30: each case allocates the type's handler and runs its constructor with the object. Type 21 and any type above 30 get a shared static handler and log BADBASEGAMEOBJECT. A failed allocation leaves no handler. Every built handler starts with a vtable, the object at +0x4, an error at +0x8 and a use range at +0xc, by default ERR_USE_LOCKED and 5.0 yards. The static handler has only its vtable; its +0x4 to +0xc stay zero, unread because its slots 5 and 6 return 0.

The derivation is in the doc.

Callers 28

Callees 0

None by a direct call or jump.

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