- CGObject_C base, CEffect, CObjectEffect/CObjectEffectManager effect states - Unit, Player, Item/Container/Bag, Corpse, DynamicObject, GameObject and all GameObject type classes (vtables matched slot by slot), Movement, MovementShared, Missile, Vehicle/Passenger/Camera, combat log, caches - Client object manager (0x4D3100-0x4D7880) incl. SMSG_UPDATE_OBJECT, SMSG_COMPRESSED_UPDATE_OBJECT, SMSG_DESTROY_OBJECT; type ctors/PostInit - CGGameUI::CanPerformAction and the ready part of CGInputControl - Layouts named from descriptor fields and code; CM2Model 0x134 matrix, CClientObjCreate tail, CGUnit_C/CGPlayer_C sizes 0x1008/0x1958 - WOWGUID struct replaces the IDB's WGUID low/high pair and guid uint64_t; SmartGUID derives from it; member functions returning a guid keep uint64_t (MSVC returns class types from members via hidden pointer); structs with 4-aligned guids in 12340 use pack(4) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
31 lines
707 B
C++
31 lines
707 B
C++
#include "Object.h"
|
|
|
|
// STATIC: 0x00AC47D8
|
|
const uint32_t CGObject::s_savedFields[3] = {
|
|
OBJECT_FIELD_ENTRY,
|
|
OBJECT_FIELD_SCALE_X,
|
|
OBJECT_FIELD_PADDING,
|
|
};
|
|
|
|
// INLINED
|
|
CGObject::~CGObject() {
|
|
}
|
|
|
|
// VERIFY: 47fea3cc auto
|
|
// OFFSET: 0x004F4A10
|
|
int32_t CGObject::TotalFieldsSaved() {
|
|
return sizeof(CGObject::s_savedFields) / sizeof(CGObject::s_savedFields[0]);
|
|
}
|
|
|
|
// VERIFY: bfa51ea9 auto
|
|
// OFFSET: 0x004F4A20
|
|
int32_t CGObject::GetSavedIndexFromDataIndex(uint32_t index) {
|
|
for (int32_t i = 0; i < sizeof(CGObject::s_savedFields) / sizeof(CGObject::s_savedFields[0]); i++) {
|
|
if (CGObject::s_savedFields[i] == index) {
|
|
return i;
|
|
}
|
|
}
|
|
|
|
return OBJECT_END;
|
|
}
|