benilla-re systems structs docs

ApplyGuildEmblemCallback

function · glue · orchestration

Address
0x472420 · 171 bytes, up to 0x4724ca
Signature
void __fastcall (uint32_t guild, uint32_t unused, void *arg, uint8_t found)
Meaning
Applies a guild's cached tabard emblem to the selected record's component once per roster record of that guild
Confidence
verified, proof one
Finding
glue/select#equipment-and-the-guild-tabard

Finding: Equipment and the guild tabard in glue: character select

For slots 0 to 19 with a nonzero display id, the build skips slot 17, slot 0 under flag 0x400 and slot 14 under 0x800. Slots 15 and 16 with an ItemDisplayInfo row go to 0x47a0c0 on the component's model with (slot, 0, 0, type = 14, 0); the rest go to 0x478cb0(slot, display id). Slot 18 whose row has bit 0 of +0x24 asks the guild cache (0x6d6d20) for guild +0x40's emblem with the callback 0x472420; five values found at once go to 0x47a610. 0x472420(guild, …, found) ignores guild 0 and found 0; otherwise, for each record of that guild, it reads the cache again and hands the values to 0x47a610 on the component of the record selected then.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 2

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