CGGameObject_C::vftable
global · objectlayer
- Address
0x80c330· 136 bytes, up to0x80c3b7- Type
void *[34]- Meaning
- Holds the game object vtable, 34 slots
- Confidence
- verified, proof one
- Finding
- objectlayer/classes#constructors-and-final-vtables
Finding: Constructors and final vtables in objectlayer: classes
Every subclass constructor runs its parent's first, then its own members, then stores its vtable over the parent's. The container and player constructors start from the item and unit constructors. The vtable each stores last, with its slot count:
| type | constructor | vtable | slots |
|---|---|---|---|
| object | 0x6139a0 | 0x803640 | 31 |
| item | 0x5d81f0 | 0x80ada8, +0x110: 0x80ada0 | 31, 1 |
| container | 0x5d7730 | 0x80ac88, +0x110: 0x80ac84 | 31, 1 |
| unit | 0x5fad50 | 0x80c4f8 | 46 |
| player | 0x5dd2e0 | 0x80af78 | 47 |
| game object | 0x5f6f30 | 0x80c330 | 34 |
| dynamic object | 0x5d5140 | 0x80aa80 | 31 |
| corpse | 0x5d6050 | 0x80ab80 | 31 |
The derivation is in the doc.