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.
| type | class | base | N | size | block |
|---|---|---|---|---|---|
| 0 | CGObject_C | 0x128 | 3 | 308 (no pool) | |
| 1 | CGItem_C | 0x408 | 35 | 1172 | 512 |
| 2 | CGContainer_C | 0x8c8 | 107 | 2676 | 32 |
| 3 | CGUnit_C | 0x1158 | 170 | 5120 | 64 |
| 4 | CGPlayer_C | 0x2508 | 465 | 11340 | 64 |
| 5 | CGGameObject_C | 0x2f0 | 8 | 784 | 64 |
| 6 | CGDynamicObject_C | 0x1e0 | 3 | 492 | 32 |
| 7 | CGCorpse_C | 0x350 | 6 | 872 | 32 |
The derivation is in the doc.
Fields 7
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0348 | 4 | uint32_t * | m_containerFields | Holds the address of field 48, CONTAINER_FIELD_NUM_SLOTS, written by 0x5d76f0 | verified, proof one | objectlayer/items#the-container |
0x034c | 4 | uint32_t * | m_containerWatchCopy | Holds the address of the container part of the watch copy, written by 0x5d76f0 | verified, proof one | objectlayer/items#the-container |
0x0350 | 888 | uint8_t[888] | m_containerWatchers | Holds the 74 container field watcher lists, 12 bytes each | verified, proof one | objectlayer/items#the-container |
0x06c8 | 4 | uint32_t | m_slotCount | Holds CONTAINER_FIELD_NUM_SLOTS, the slot list's count | verified, proof one | objectlayer/items#the-container |
0x06cc | 4 | uint64_t * | m_slotGuids | Holds the address of the slot GUID fields | verified, proof one | objectlayer/items#the-container |
0x06d0 | 8 | uint64_t | m_slotListGuid | Holds the container's GUID for its slot list | verified, proof one | objectlayer/items#the-container |
0x06d8 | 1 | uint8_t | m_slotListByte | Holds a byte 0 the slot list ends with | verified, proof one | objectlayer/items#the-container |