benilla-re systems structs docs

LightningObject::~LightningObject

function · spell · orchestration

Address
0x6ecf40 · 213 bytes, up to 0x6ed014
Signature
void __thiscall (LightningObject *this)
Meaning
Destroys every bolt, frees both arrays, closes the texture and unlinks the chain
Confidence
verified, proof one
Finding
spell/visuals#chain-lifetime

Finding: Chain lifetime in spell: visuals

A LightningObject starts with one reference, the list's; a persistent one gains a second for its owner. The update's zero unlinks it and drops the list's. The owner's teardown calls 0x6ece10 on each of its three slots and clears them: the chain becomes non-persistent with its end set to now, and drops the owner's reference. At zero references 0x6ecf40 destroys every bolt, frees both arrays, closes the texture and unlinks, and the memory is freed.

The derivation is in the doc.

Callers 2

Callees 5

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