AddPickCandidate
function · ui · orchestration
- Address
0x4815d0· 419 bytes, up to0x481772- Meaning
- Asks an object to update its model and adds a node for it to the candidate list when it renders
- Confidence
- verified, proof one
- Finding
- ui/worldpick#the-candidate-list
Finding: The candidate list in ui: the world pick
The world frame keeps a list of nodes, one per object drawn this frame, at +0x318/+0x31c. The per-frame render callback 0x481540 hands each object to 0x4815d0, which asks the object's virtual at +0x40 whether it renders this frame, and inserts a node only when the answer is nonzero and the object is not release-pending. A node holds the model (+0x8, with a reference), the GUID (+0x18) and the object's height (+0x10).
0x482ca0, once per world frame, empties this list and a second one at +0x320 (0x480990 releases each node's model and returns the node to the free list) and then ticks every unit and game object.
The derivation is in the doc.
Callers 1
Callees 8
- Clear2481780 ui
- LinkNode484220 ui
- NextLink484690 ui
- Unlink4846c0 ui
- CGObject_C::IsReleasePending objectlayer
- SMemAlloc storm
- CM2Model::AddRef models
- CM2Model::SetVisible models
Calls and jumps by a bare address, from tables/calls.tsv.