- Field names from the 12340 type library (x/y/z/w, a0..d3, minY/minX/maxY/maxX, b/t, c/r, n/d, origin/dir) - Files renamed to match their class; CRay -> C3Ray; C3Segment, CRect, CiRect, C2iVector, C3iVector split out - MouseEventData, CharacterInfo, M2Bounds moved out of Tempest headers - 107 functions: C2/C3/C4Vector, C33/C34/C44Matrix, C4Quaternion, C4Plane, CAaBox, CAaSphere, C3Ray, CRect, CiRect, CImVector, NTempest - 0x4C1C40 is cdecl (q, out): ported as static C44Matrix::FromQuaternion (guessed) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
86 lines
2.5 KiB
C++
86 lines
2.5 KiB
C++
#ifndef WOW_SOURCE_WORLDCLIENT_MAPAREA_H
|
|
#define WOW_SOURCE_WORLDCLIENT_MAPAREA_H
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
#include "Engine/Source/Tempest/C3Vector.h"
|
|
#include "Engine/Source/Tempest/CAaBox.h"
|
|
#include "Engine/Source/Storm/H/stpl.h"
|
|
#include "WoW/Source/WorldClient/MapBaseObj.h"
|
|
#include "_Triage/C2iVector.h"
|
|
|
|
class CAsyncObject;
|
|
class CMapArea;
|
|
class CMapAreaChunkLink;
|
|
struct CMapAreaTexture;
|
|
struct CMapChunk;
|
|
struct SMAreaHeader;
|
|
struct SMChunkInfo;
|
|
struct SMDoodadDef;
|
|
struct SMMapObjDef;
|
|
|
|
class CMapAreaChunkLink {
|
|
public:
|
|
/* 0000 */ uint32_t m_objectIndex;
|
|
/* 0004 */ CMapChunk* m_owner;
|
|
/* 0008 */ CMapArea* m_ref;
|
|
/* 000C */ TSLink<CMapAreaChunkLink> m_refLink;
|
|
/* 0014 */ TSLink<CMapAreaChunkLink> m_ownerLink;
|
|
};
|
|
|
|
class CMapArea : public CMapBaseObj {
|
|
public:
|
|
/* 0024 */ CAaBox m_bounds;
|
|
/* 003C */ C3Vector m_topLeft2;
|
|
/* 0048 */ C2iVector m_index;
|
|
/* 0050 */ C2iVector m_tileChunkIndex;
|
|
/* 0058 */ TSGrowableArray<CMapAreaTexture> m_textures;
|
|
/* 0068 */ SMAreaHeader* m_header;
|
|
/* 006C */ int32_t m_file;
|
|
/* 0070 */ CAsyncObject* m_asyncObject;
|
|
/* 0074 */ TSExplicitList<CMapAreaChunkLink> m_chunkLinkList;
|
|
/* 0080 */ void* m_fileBuffer;
|
|
/* 0084 */ int32_t m_fileSize;
|
|
/* 0088 */ SMChunkInfo* m_chunkInfo;
|
|
/* 008C */ int32_t unk_008C;
|
|
/* 0090 */ SMDoodadDef* m_doodadDef;
|
|
/* 0094 */ SMMapObjDef* m_mapObjDef;
|
|
/* 0098 */ int32_t m_doodadDefCount;
|
|
/* 009C */ int32_t m_mapObjDefCount;
|
|
/* 00A0 */ char* m_m2FileNames;
|
|
/* 00A4 */ char* m_wmoFileNames;
|
|
/* 00A8 */ uint32_t* m_modelFilenamesOffsets;
|
|
/* 00AC */ uint32_t* m_wmoFilenamesOffsets;
|
|
/* 00B0 */ int16_t* m_flyingBbox;
|
|
/* 00B4 */ int32_t* m_textureFlags;
|
|
/* 00B8 */ uint8_t* unk_00B8;
|
|
/* 00BC */ CMapChunk* m_mapChunks [256];
|
|
};
|
|
|
|
struct SMAreaHeader {
|
|
/* 0000 */ uint32_t m_flags;
|
|
/* 0004 */ uint32_t m_mcin;
|
|
/* 0008 */ uint32_t m_mtex;
|
|
/* 000C */ uint32_t m_mmdx;
|
|
/* 0010 */ uint32_t m_mmid;
|
|
/* 0014 */ uint32_t m_mwmo;
|
|
/* 0018 */ uint32_t m_mwid;
|
|
/* 001C */ uint32_t m_mddf;
|
|
/* 0020 */ uint32_t m_modf;
|
|
/* 0024 */ uint32_t m_mfbo;
|
|
/* 0028 */ uint32_t m_mh2o;
|
|
/* 002C */ uint32_t m_mtxf;
|
|
/* 0030 */ uint8_t m_mampValue;
|
|
/* 0031 */ uint8_t m_padding [3];
|
|
/* 0034 */ uint32_t m_unused [3];
|
|
};
|
|
|
|
struct SMChunkInfo {
|
|
/* 0000 */ uint32_t m_offset;
|
|
/* 0004 */ uint32_t m_size;
|
|
/* 0008 */ uint32_t m_flags;
|
|
/* 000C */ uint8_t unk_000C[4];
|
|
};
|
|
|
|
#endif
|