benilla-re systems structs docs

ReadLightRecord

function · dbc · primitive

Address
0x589220 · 294 bytes, up to 0x589345
Signature
bool __thiscall (void *this, void *file, const char *stringBase)
Meaning
Reads one LightRec column by column from the file and rebases its string offsets
Confidence
verified, proof one
Finding
lighting/tables#table-stores

Finding: Table stores in lighting: tables

Each table has a store of five dwords: the records, the record count, an id map, the largest id and a loaded flag. A record is the file's columns in file order. The id map has largest id + 1 slots, zeroed, and slot id points at the record whose first column is id, so every reference below is an id used as an index, and an id with no record reads as null.

tablestorecolumns, bytesrecord
Light0xce9d6012, 48id, map, x, y, z, inner radius, outer radius, five LightParams ids
LightParams0xce9d749, 36id, then eight columns the gather copies
LightFloatBand0xce9d8834, 136id, key count, 16 key times, 16 floats
LightIntBand0xce9d9c34, 136id, key count, 16 key times, 16 colours
LightSkybox0xce9db02, 8id, model path

The derivation is in the doc.

Callers 1

Callees 2

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