benilla-re systems structs docs

CGGameObject_C::CGGameObject_C

function · objectlayer · primitive

Address
0x5f6f30 · 1946 bytes, up to 0x5f76c9
Signature
CGGameObject_C * __thiscall (CGGameObject_C *this, uint32_t time, void *block)
Meaning
Builds a game object: watcher lists, transform, fields from the update and its type handler
Confidence
verified, proof one
Finding
objectlayer/gameobjects#the-game-object

Finding: The game object in objectlayer: game objects

The constructor builds the object part, 20 empty watcher lists at +0x118, an identity world matrix at +0x218, an empty world box at +0x260, and copies the update's position and facing into GAMEOBJECT_POS_X to GAMEOBJECT_FACING. +0x27c takes GAMEOBJECT_STATE; with update flag 0x2, +0x278 takes the block's last u32 minus the time. It then builds the type handler at +0x210. The destructor cancels a pending record request, deletes the handler, unlinks the transport link +0x208 and the lists, and runs the object's.

memberholds
+0x210the type handler
+0x214the record, once it arrives
+0x280an animation event waiting for the model
+0x2841 when the object collides

The derivation is in the doc.

Callers 1

Callees 35

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