Files
SatyandClaude Opus 5.5 3b857f3eb0 Object port: object classes, object manager, input control, WOWGUID type
- 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]>
2026-09-29 12:27:05 +02:00

37 lines
1.0 KiB
C++

#ifndef WOW_SOURCE_OBJECT_CORPSE_H
#define WOW_SOURCE_OBJECT_CORPSE_H
#include <cstddef>
#include <cstdint>
#include "WoW/Source/Object/WGUID.h"
class CGCorpseData;
class CGCorpse {
public:
static const uint32_t s_mirrorFields[3];
static uint32_t DescriptorToMirrorOffset(uint32_t offset, uint32_t size, int32_t local, uint32_t base);
static uint32_t GetSavedIndexFromDataIndex(uint32_t index, uint32_t count, int32_t local);
static int32_t TotalFieldsSaved();
/* 0000 */ CGCorpseData* m_corpse;
/* 0004 */ void* m_corpseMirror;
};
class CGCorpseData {
public:
/* 0000 */ WOWGUID m_corpseFieldOwner;
/* 0008 */ WOWGUID m_corpseFieldParty;
/* 0010 */ uint32_t m_corpseFieldDisplayId;
/* 0014 */ uint32_t m_corpseFieldItem [19];
/* 0060 */ uint8_t m_corpseFieldBytes1 [4];
/* 0064 */ uint8_t m_corpseFieldBytes2 [4];
/* 0068 */ uint32_t m_corpseFieldGuild;
/* 006C */ uint32_t m_corpseFieldFlags;
/* 0070 */ uint32_t m_corpseFieldDynamicFlags;
/* 0074 */ uint32_t m_corpseFieldPad;
};
#endif