benilla-re systems structs docs

0x808be4

global · ui

Address
0x808be4 · 4 bytes, up to 0x808be7
Type
const float
Meaning
Holds the first float of a table that Script::UnitSex reads; not read here
Confidence
inferred
Finding
ui/unitplayer#the-four-readers

Finding: The four readers in ui: the player token before the player object

UnitName, UnitSex, UnitRace and UnitClass compare their token with the whole string player (SStrCmpI, 0x7fffffff) and, on a match, answer from the record without the resolver or an object. UnitName pushes the name and then nil (two values; the realm slot is always nil here). UnitSex pushes {2, 3, 1, 6}[sex byte] from the table 0x808be4, with no bound. UnitRace and UnitClass push the localised name and the token of the ChrRaces or ChrClasses row of the byte, or nil, nil when the id is out of range or its row is missing. The record wins over the object for these four forever.

The derivation is in the doc.