benilla-re systems structs docs

AddHandleRef

function · base

Address
0x41af50 · 16 bytes, up to 0x41af5f
Signature
void * __thiscall (void *this)
Meaning
Adds a reference to a handle's object and returns the handle, or 0 for a null handle
Confidence
verified, proof one
Finding
models/model#instance-arrays

Finding: Instance arrays in models: the instance

Initialization allocates the instance's animated state from the header's counts; a failed allocation fails it. Each element array starts zeroed or with its states cleared, except the visibility words (Geoset visibility).

offsetarray, per element
+0x064, +0x06cone word per global sequence (its time), one word per sequence
+0x090, +0x094bone states (0x118, the bone's flags copied to +0xf4), bone matrices (64)
+0x098, +0x09cvisibility words
+0x0a0, +0x0a8, +0x0accolour (0x50), transparency (0x20) and texture frame (0x20) states
+0x0a4texture handles, each taken from the copy source or the shared model with a reference
+0x0b0, +0x0b4texture transform states (0x98), texture transform matrices (64)
+0x1c8, +0x1f0attachment visibility states (0x20), event states (0x20)
+0x200light states (0x170): a light at +0x104 of the record's type, +0x3c and +0x8c 1.0
+0x3c4camera states (0x84) with a camera at +0x80 given the record's +0x4, +0xc, +0x8
+0x3c8, +0x3ccribbon states (0xd0), ribbon emitters
+0x3d0, +0x3d4particle states (0x16c), particle emitters

The derivation is in the doc.

Callers 13

Callees 1

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