benilla-re systems structs docs

CGObject_C

struct · objectlayer · 308 bytes

Vtable
0x803640
Meaning
Holds an object the server described: its storage, pool handle, type, GUID key, hold count and flags
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 35

offsetsizetypenamemeaningconfidencefinding
0x00004void *__vfptrHolds the type's vtable, stored last by each constructorverified, proof oneobjectlayer/classes#constructors-and-final-vtables
0x00084uint32_t *m_fieldsHolds the field array, written by 0x613980verified, proof oneobjectlayer/classes#field-storage
0x000c4uint32_t *m_watchCopyHolds the copy array of the watched fields, written by 0x613980verified, proof oneobjectlayer/classes#field-storage
0x00104uint32_tm_poolHandleHolds the handle of the pool block the object came from, written by 0x466e00verified, proof oneobjectlayer/manager#allocating-and-reusing
0x00144uint32_tm_typeIdHolds the type id 0 to 7, written by 0x613880verified, proof oneobjectlayer/classes#type-id-and-mask
0x001c8void *[2]m_liveBucketLinkLinks the object into its bucket of the manager's live tableverified, proof oneobjectlayer/objectbase#constructor-and-members
0x00248void *[2]m_liveListLinkLinks the object into the live table's iteration listverified, proof oneobjectlayer/objectbase#constructor-and-members
0x00308uint64_tm_guidKeyHolds the GUID the manager's tables key the object by, written on each table insertverified, proof oneobjectlayer/manager#finding-an-object
0x00388void *[2]m_objectListLinkLinks the object into the manager's object list or a reuse listverified, proof oneobjectlayer/objectbase#constructor-and-members
0x00408void *[2]m_reactivatedLinkLinks the object into the manager's reactivated list at +0xb0verified, proof oneobjectlayer/objectbase#constructor-and-members
0x004872uint32_t[18]m_watcherListsHolds the six field watcher lists of 12 bytes, one per base fieldverified, proof oneobjectlayer/objectbase#constructor-and-members
0x00904floatm_scaleHolds the current scale, eased to the scale field over 2000 msverified, proof oneobjectlayer/objectbase#the-frame-update
0x00944floatm_scaleFactorHolds a factor of the node scale, 1.0verified, proof oneobjectlayer/objectbase#the-node-transform
0x00984floatm_bodyScaleFactorHolds the node scale factor used with the body model, 1.0verified, proof oneobjectlayer/objectbase#the-node-transform
0x009c4floatm_overrideScaleFactorHolds the node scale factor used with the overriding model, 1.0verified, proof oneobjectlayer/objectbase#the-node-transform
0x00a04uint32_tm_scaleEaseStartHolds the time a scale ease started, 0 when none runsverified, proof oneobjectlayer/objectbase#the-scale-change
0x00a44floatm_scaleEaseFromHolds the scale the ease started fromverified, proof oneobjectlayer/objectbase#the-scale-change
0x00ac4void *m_castMissilesHolds the head of the missiles waiting for releaseverified, proof oneobjectlayer/objectbase#destruction
0x00b04void *m_stuckMissilesHolds the head of the missiles stuck in the objectverified, proof oneobjectlayer/objectbase#the-frame-update
0x00b44void *m_effectsHolds the head of the object's spell effectsverified, proof oneobjectlayer/objectbase#destruction
0x00b84uint32_tm_lightBitsHolds the highlight bits, bit 0 target and bit 1 mouse-oververified, proof oneobjectlayer/objectbase#highlight-light-bits
0x00bc4floatm_heightHolds the body model's height, 1.0 before it loadsverified, proof oneobjectlayer/objectbase#models-and-the-node
0x00c024float[6]m_boundsHolds the body model's bounding boxverified, proof oneobjectlayer/objectbase#models-and-the-node
0x00d84void *m_modelHolds the body modelverified, proof oneobjectlayer/objectbase#models-and-the-node
0x00dc4void *m_overrideModelHolds the overriding model, which every user takes firstverified, proof oneobjectlayer/objectbase#models-and-the-node
0x00e04void *m_nodeHolds the world nodeverified, proof oneobjectlayer/objectbase#models-and-the-node
0x00e44uint32_tm_objectFlagsHolds object flags; 0x614f50 sets and clears bit 0x10, release pendingverified, proof oneobjectlayer/manager#releasing-an-object
0x00e84uint32_tm_holdCountHolds the count of holds that keep the object from release, stepped by 0x614f10verified, proof oneobjectlayer/manager#holding-an-object
0x00ec4uint32_tm_fadeStartHolds the time the alpha fade startedverified, proof oneobjectlayer/objectbase#the-alpha-fade
0x00f04uint32_tm_fadeMsHolds the fade's length in milliseconds, 0 when none runsverified, proof oneobjectlayer/objectbase#the-alpha-fade
0x00f44floatm_fadeAlphaHolds the current fade alphaverified, proof oneobjectlayer/objectbase#the-alpha-fade
0x00f84floatm_fadeFromHolds the alpha the fade started fromverified, proof oneobjectlayer/objectbase#the-alpha-fade
0x00fc4floatm_fadeToHolds the alpha the fade runs toverified, proof oneobjectlayer/objectbase#the-alpha-fade
0x01004floatm_alphaHolds the master alpha the fade is multiplied by, 1.0verified, proof oneobjectlayer/objectbase#the-alpha-fade
0x010412float[3]m_upVectorHolds the smoothed ground normal the model is conformed toverified, proof oneobjectlayer/objectbase#ground-conform