CGPlayer_C::CGPlayer_C
function · objectlayer · primitive
- Address
0x5dd2e0· 530 bytes, up to0x5dd4f1- 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.
| offset | member |
|---|---|
+0x0e70 | 298 object watcher lists, 12 bytes each, for the player fields |
+0x1c74 | hash table of TRADESKILLLINE nodes (vtable 0x80b044), mask +0x1c98 |
+0x1c9c | hash table of PROFICIENCYSPELL nodes (vtable 0x80b034), mask +0x1cc0 |
+0x1cc4 | list of PlayerPendingItemExpiration, linked at +0x1cc8 |
+0x1cd0 | four 16-byte spell arrays, indexed by Spell.dbc +0x0c |
+0x1d10 | four spell ids, indexed by an effect-47 spell's misc value |
+0x1d20 | count of equipment displays waiting on an item record |
+0x1d28 | the GUID being looted; +0x1d30 the auto-loot byte |
+0x1d38 | the inventory: count 0x71 for the active player, else 0; +0x1d3c the GUID array, the fields +0x4a8 |
+0x1d40 | the player's GUID, +0x1d48 a byte 1 (the inventory's owner and own-flag) |
+0x1d68 | the active player's local stand state |
The derivation is in the doc.
Callers 1
- ObjectConstruct objectlayer
Callees 12
- ConstructDwordArray loadingscreen
- ClntObjMgrGetActivePlayer objectlayer
- InitMirrorHandlerListEnd objectlayer
- InitTradeSkillBucket objectlayer
- ClearTradeSkillBucketArray objectlayer
- InitProficiencyBucket objectlayer
- SetProficiencyListLinkOffset objectlayer
- ClearProficiencyBucketArray objectlayer
- UnlinkTradeSkillListAll objectlayer
- InitPendingExpirationListEnd objectlayer
- InitTradeSkillListEnd objectlayer
- CGUnit_C::CGUnit_C objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.