benilla-re systems structs docs

FrameScriptRegisterAllEvents

function · ui · orchestration

Address
0x7023e0 · 262 bytes, up to 0x7024e5
Meaning
Adds an object to the listeners of every event it is not on
Confidence
verified, proof two
Finding
ui/script#registering-for-an-event

Finding: Registering for an event in ui: the script layer and events

Registering an object for an event name compares the name, ignoring case, with every record. For a match where the object is already a listener it answers 1 at once; otherwise it links a listener node at the head of the record's list and appends the record's index to the object's array. An unknown name changes nothing. Unregistering walks the object's array from the end, freeing its node in each record of that name and removing the index. Registering for all events links the object into every record it is not already in; unregistering from all frees every node of the object and empties its array.

The derivation is in the doc.

Callers 1

Callees 2

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