benilla-re systems structs docs

CGPlayer_C::CGPlayer_C

function · objectlayer · primitive

Address
0x5dd2e0 · 530 bytes, up to 0x5dd4f1
Signature
CGPlayer_C * __thiscall (CGPlayer_C *this, void *a, void *b)
Meaning
Builds a player on the unit: 298 watcher lists, the skill and proficiency tables, the inventory and the vtable
Confidence
verified, proof one
Finding
objectlayer/players#the-player-object

Finding: The player object in objectlayer: players

ObjectConstruct calls 0x5dd2e0 with its two arguments, which it passes to CGUnit_C::CGUnit_C (0x5fad50); then it sets the members below. The active player also gets 796 empty watcher lists in the block +0x1c68 points at.

offsetmember
+0x0e70298 object watcher lists, 12 bytes each, for the player fields
+0x1c74hash table of TRADESKILLLINE nodes (vtable 0x80b044), mask +0x1c98
+0x1c9chash table of PROFICIENCYSPELL nodes (vtable 0x80b034), mask +0x1cc0
+0x1cc4list of PlayerPendingItemExpiration, linked at +0x1cc8
+0x1cd0four 16-byte spell arrays, indexed by Spell.dbc +0x0c
+0x1d10four spell ids, indexed by an effect-47 spell's misc value
+0x1d20count of equipment displays waiting on an item record
+0x1d28the GUID being looted; +0x1d30 the auto-loot byte
+0x1d38the inventory: count 0x71 for the active player, else 0; +0x1d3c the GUID array, the fields +0x4a8
+0x1d40the player's GUID, +0x1d48 a byte 1 (the inventory's owner and own-flag)
+0x1d68the active player's local stand state

The derivation is in the doc.

Callers 1

Callees 12

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