- 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]>
32 lines
1010 B
C++
32 lines
1010 B
C++
#include "GameObject.h"
|
|
#include "WoW/Source/Object/Object.h"
|
|
|
|
// STATIC: 0x00AC5C1C
|
|
uint32_t CGGameObject::s_mirrorFieldIndex[4] = { 3, 8, 11, 12 };
|
|
|
|
// VERIFY: 93fc90a3 auto
|
|
// OFFSET: 0x004D4300
|
|
uint32_t CGGameObject::DescriptorToMirrorOffset(uint32_t offset, uint32_t size, int32_t local, uint32_t base) {
|
|
int32_t total = CGObject::TotalFieldsSaved();
|
|
|
|
return (offset & 3) + 4 * (total + CGGameObject::MirrorIndexFromFieldIndex((offset - base) >> 2, (size + 3) >> 2, local));
|
|
}
|
|
|
|
// VERIFY: bd7b79e2 auto
|
|
// OFFSET: 0x004F55C0
|
|
uint32_t CGGameObject::MirrorIndexFromFieldIndex(uint32_t fieldIndex, uint32_t count, int32_t local) {
|
|
for (uint32_t i = 0; i < 4; i++) {
|
|
if (s_mirrorFieldIndex[i] == fieldIndex) {
|
|
return i;
|
|
}
|
|
}
|
|
|
|
return 12;
|
|
}
|
|
|
|
// VERIFY: 9a0cff15 auto
|
|
// OFFSET: 0x004F55B0
|
|
int32_t CGGameObject::TotalFieldsSaved() {
|
|
return CGObject::TotalFieldsSaved() + sizeof(CGGameObject::s_mirrorFieldIndex) / sizeof(CGGameObject::s_mirrorFieldIndex[0]);
|
|
}
|