benilla-re systems structs docs

PlaceEntity

function · terrain · orchestration

Address
0x6a8c10 · 142 bytes, up to 0x6a8c9d
Signature
void __thiscall (void *this)
Meaning
Links an entity to the map object group that holds it, sets its light flags and bakes its light
Confidence
verified, proof one
Finding
terrain/lightattach#containment-attach

Finding: Containment attach in terrain: light node attach

A game object's node (+0x90 bit 0x2000, set at creation from the object type) takes 0x6a8c10, which asks 0x6a8ed0 for the group, then classifies the node from the found record, bakes its light for the interior class and stores the hit face at +0xe0. With no hit the node is of the exterior class. The nearest hit over every map object and group is the answer: 0x6a8ed0 shares one fraction, starting at 1.0 and never reset, across all its queries, and publishes the object, the record and the point centre − 1000·t on the downward segment.

The derivation is in the doc.

Callers 1

Callees 3

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