benilla-re systems structs docs

AppendCharSelectRecord

function · glue · primitive

Address
0x472300 · 197 bytes, up to 0x4723c4
Signature
void __thiscall (void *this)
Meaning
Appends a roster record copied from net's character record, growing the array, and loads its add-on state
Confidence
verified, proof one
Finding
glue/select#the-roster

Finding: The roster in glue: character select

The roster is a growable array: capacity 0xb4213c, count 0xb42140, records 0xb42144, chunk 0xb42148. Appending (0x472300, net's callback per character) grows it when count + 1 exceeds the capacity, builds the record at the old count with +0x110 and +0x114 zero and +0x118 = 1, copies net's 0x110-byte record over its first 0x110 bytes, raises the count, and hands the name to the interface's add-on state (0x51ebe0). With no chunk set, a request of 8 or more sets the chunk to 8 and a smaller one uses the largest power of two not above it; the capacity is the request rounded up to a multiple of the chunk.

offsetfield
+0x00, +0x08guid (8 bytes), name (48)
+0x3c, +0x40zone id, guild id
+0x50, +0xa0per slot 0 to 19: item display id, inventory type
+0xf0, +0xf4, +0xf8pet display id, level, family
+0xfcflags: 0x400 drops slot 0, 0x800 slot 14, 0x2000 ghost, 0x4000 rename
+0x100 to +0x108bytes: race, class, sex, skin, face, hair style, hair colour, facial hair, level
+0x110, +0x114the character's component, the pet's model
+0x1181 until built; no glue code reads it

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.