benilla-re systems structs docs

CGPlayer_C

struct · objectlayer · 11340 bytes

Vtable
0x80af78
Meaning
Holds a player other than the active one, whose heap block is 26648 bytes; the unit plus the player section
Confidence
verified, proof one
Finding
objectlayer/classes#class-sizes-and-pools

Finding: Class sizes and pools in objectlayer: classes

Each type's allocation size is its members, its field array and a second per-field array, in bytes base + 4·N; N comes from a small function per type. At startup the manager creates one pool per type 1 to 7 with that size, the class name and a block count. An object comes from its type's pool, which stores the pool handle at +0x10; the active player instead gets a heap block of 26648 bytes.

typeclassbaseNsizeblock
0CGObject_C0x1283308 (no pool)
1CGItem_C0x408351172512
2CGContainer_C0x8c8107267632
3CGUnit_C0x1158170512064
4CGPlayer_C0x25084651134064
5CGGameObject_C0x2f0878464
6CGDynamicObject_C0x1e0349232
7CGCorpse_C0x350687232

The derivation is in the doc.

Fields 19

offsetsizetypenamemeaningconfidencefinding
0x0e684uint32_t *m_playerFieldsPoints at field 188, the player section, written by 0x5dd2a0verified, proof oneobjectlayer/classes#field-storage
0x0e6c4uint32_t *m_playerWatchCopyPoints at the player section's watch copy, past the unit's 170, written by 0x5dd2a0verified, proof oneobjectlayer/classes#field-storage
0x0e703576uint32_t[894]m_playerWatcherListsHolds the 298 player field watcher lists of 12 bytes that the constructor emptiesverified, proof oneobjectlayer/players#the-player-object
0x1c684void *m_activeWatcherBlockPoints at the active player's block of 796 more watcher lists, past the watch copyverified, proof oneobjectlayer/players#the-player-object
0x1c704uint32_tm_farSightFlagsHolds bit 0, set from the 0x27a with 1 until far sight endsverified, proof oneobjectlayer/interaction#far-sight
0x1c7440uint8_t[40]m_tradeSkillLinesHolds the hash table of TRADESKILLLINE nodes, its vtable 0x80b044 and its mask at +0x1c98verified, proof oneobjectlayer/players#the-player-object
0x1c9c40uint8_t[40]m_proficiencySpellsHolds the hash table of PROFICIENCYSPELL nodes, its vtable 0x80b034 and its mask at +0x1cc0verified, proof oneobjectlayer/players#the-player-object
0x1cc412uint32_t[3]m_pendingExpirationsHolds the list of pending item expirations: link offset, then the links at +0x1cc8verified, proof oneobjectlayer/players#the-player-object
0x1cd064uint8_t[64]m_tabSpellsHolds four 16-byte spell arrays, indexed by the spell's Spell.dbc +0x0cverified, proof oneobjectlayer/players#the-player-object
0x1d1016uint32_t[4]m_effect47SpellsHolds four spell ids, indexed by an effect-47 spell's misc valueverified, proof oneobjectlayer/players#the-player-object
0x1d204uint32_tm_pendingDisplaysHolds the count of equipment displays waiting on an item recordverified, proof oneobjectlayer/players#the-player-object
0x1d288uint64_tm_lootGuidHolds the GUID being lootedverified, proof oneobjectlayer/players#the-player-object
0x1d301uint8_tm_autoLootHolds the auto-loot byte: the Shift state of the last interaction that set it, cleared by a sweepverified, proof oneobjectlayer/interaction#the-auto-loot-byte
0x1d384uint32_tm_inventoryCountHolds the inventory slot count, 0x71 for the active player and 0 otherwiseverified, proof oneobjectlayer/players#the-player-object
0x1d3c4uint64_t *m_inventoryGuidsPoints at the inventory GUIDs, PLAYER_FIELD_INV_SLOT_HEAD in the player fieldsverified, proof oneobjectlayer/players#the-player-object
0x1d408uint64_tm_inventoryOwnerHolds the player's GUID as the inventory's ownerverified, proof oneobjectlayer/players#the-player-object
0x1d481uint8_tm_inventoryOwnHolds 1, the inventory's own-flagverified, proof oneobjectlayer/players#the-player-object
0x1d5024uint8_t[24]m_handWeaponsHolds each hand's weapon record, 8 bytes apart: class, subclass and three more bytesverified, proof oneobjectlayer/playercombat#hand-weapons
0x1d684uint32_tm_localStandStateHolds the active player's local stand stateverified, proof oneobjectlayer/players#the-player-object