benilla-re systems structs docs

InsertHeapNode

function · core · orchestration

Address
0x428ee0 · 125 bytes, up to 0x428f5c
Signature
void __thiscall (void *this, void *node)
Meaning
Appends a node to a heap and sifts it up
Confidence
verified, proof two
Finding
core/events#timers

Finding: Timers in core: events

EventSetTimer (0x4200a0) takes a delay in milliseconds, a function and an argument, and returns a timer id for the current context: the last id freed, else the next, at least 1. The timer is due at now + delay; when the loop's timer phase finds it due, it is removed from the heap, its id is freed, and its function is called once as fastcall(&{delay · 0.001f, now}, argument) with the lock released. Due timers run in due-time order and the phase reads the clock once. EventKillTimer (0x4203e0) clears a timer's functions; a timer with none is dropped when it reaches the heap's top, and its id is freed then.

The derivation is in the doc.

Callers 3

Callees 1

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