benilla-re systems structs docs

DrainPortraitList

function · ui · primitive

Address
0x524cd0 · 308 bytes, up to 0x524e03
Signature
void __cdecl ()
Meaning
Fires UNIT_PORTRAIT_UPDATE and UNIT_MODEL_CHANGED for each pending unit whose portrait is ready
Confidence
verified, proof one
Finding
ui/paperdoll#draining-the-pending-list

Finding: Draining the pending list in ui: the paper doll and its model events

The drain returns at once unless two graphics readiness tests pass. For each pending GUID it looks up the unit and puts the node back, firing nothing, unless the unit has: no portrait-invalidate latch (+0xcd0), no appearance latch (+0xccc), a ready component texture (or none), a model (+0xd8) and a resident skin. A GUID that resolves to no unit is drained and fires anyway. A drained node moves to the free list.

The derivation is in the doc.

Callers 1

Callees 6

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