benilla-re systems structs docs

EvtHandler

struct · core · 24 bytes

Meaning
Holds a registered handler: its link, function, argument, priority and skip flag
Confidence
verified, proof two
Finding
core/events#handler-records

Finding: Handler records in core: events

A handler is a 0x18-byte record in its category's list: a link, the function, its argument, a float priority, and a skip flag at +0x14. A list's head is 12 bytes at +0x5c + 12·category of the context: the link offset 0, then the end link. The function is called as fastcall(payload, argument) and returns nonzero to let the dispatch go on.

The derivation is in the doc.

Fields 5

offsetsizetypenamemeaningconfidencefinding
0x00008void *[2]m_linkHolds the record's link in its category listverified, proof twocore/events#handler-records
0x00084void *m_handlerHolds the function, called as fastcall(payload, argument)verified, proof twocore/events#handler-records
0x000c4void *m_argumentHolds the argument passed in edxverified, proof twocore/events#handler-records
0x00104floatm_priorityHolds the priority; higher runs firstverified, proof twocore/events#handler-order
0x00144uint32_tm_skipHolds nonzero for a record the dispatch and registration pass oververified, proof twocore/events#handler-order