benilla-re systems structs docs

CGContainer_C

struct · objectlayer · 2676 bytes

Vtable
0x80ac88
Meaning
Holds a container: the item, 74 more watcher lists and its slot list
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 7

offsetsizetypenamemeaningconfidencefinding
0x03484uint32_t *m_containerFieldsHolds the address of field 48, CONTAINER_FIELD_NUM_SLOTS, written by 0x5d76f0verified, proof oneobjectlayer/items#the-container
0x034c4uint32_t *m_containerWatchCopyHolds the address of the container part of the watch copy, written by 0x5d76f0verified, proof oneobjectlayer/items#the-container
0x0350888uint8_t[888]m_containerWatchersHolds the 74 container field watcher lists, 12 bytes eachverified, proof oneobjectlayer/items#the-container
0x06c84uint32_tm_slotCountHolds CONTAINER_FIELD_NUM_SLOTS, the slot list's countverified, proof oneobjectlayer/items#the-container
0x06cc4uint64_t *m_slotGuidsHolds the address of the slot GUID fieldsverified, proof oneobjectlayer/items#the-container
0x06d08uint64_tm_slotListGuidHolds the container's GUID for its slot listverified, proof oneobjectlayer/items#the-container
0x06d81uint8_tm_slotListByteHolds a byte 0 the slot list ends withverified, proof oneobjectlayer/items#the-container