benilla-re systems structs docs

s_createClassCapacity

global · glue

Address
0xb4207c · 4 bytes, up to 0xb4207f
Type
uint32_t
Meaning
Holds the class list's capacity; 0 at load, written by the class list build 0x4706b0
Confidence
verified, proof one
Finding
glue/create#create-state

Finding: Create state in glue: character create

The race list is a growable array of ChrRaces ids: capacity 0xb42058, count 0xb4205c, data 0xb42060. The class list holds ChrClasses record pointers: capacity 0xb4207c, count 0xb42080, data 0xb42084. 0xb42068 is the selected race index, −1 for none; 0x8380f0 the class id, 1 in the file; 0xb42078 the create character; 0xb420f0 the model frame; 0xb420f4 the facing in radians, a float. All but the class start zero. Until the first build the character is null, and GetNameForRace, GetSelectedSex, SetSelectedSex and SetCharacterCreateFacing read through it unchecked.

The derivation is in the doc.