feat(profile): CChunkLiquid struct

This commit is contained in:
gromchek 2025-09-13 16:59:32 +03:00
parent 7f79d5c329
commit 0e2c465287
6 changed files with 57 additions and 0 deletions

View file

@ -82,6 +82,7 @@
#include "map/CMapArea.h" #include "map/CMapArea.h"
#include "map/WMOchunks.h" #include "map/WMOchunks.h"
#include "map/CMapObj.h" #include "map/CMapObj.h"
#include "map/CChunkLiquid.h"
#include "net/message.h" #include "net/message.h"

View file

@ -0,0 +1,39 @@
#ifndef CCHUNKLIQUID_H
#define CCHUNKLIQUID_H
DECLARE_STRUCT(CChunkLiquid);
struct CMapChunk;
#include "tempest/vector.h"
struct CChunkLiquid
{
int32_t objectIndex;
int32_t unk_004;
int32_t unk_008;
C3Vector topLeftCoords;
C3Vector center;
float radius;
C2Vector height;
float resPurgeTimer;
C2iVector tileBegin;
C2iVector tileEnd;
int32_t unk_044;
int32_t unk_048;
int32_t unk_04C;
int32_t unk_050;
uint8_t* tiles;
uint8_t* liquidInstPtr;
CMapChunk* owner;
CChunkLiquid* prev;
CChunkLiquid* next;
int32_t unk_068;
int32_t unk_06C;
int32_t unk_070;
int32_t unk_074;
C3Vector verts[81];
};
#endif

View file

@ -1 +1,10 @@
CChunkLiquid__Purge 007CDE10 f end=007CDE28 CChunkLiquid__Purge 007CDE10 f end=007CDE28
CChunkLiquid__UpdateResourcePurging 007CDE30 f end=007CDE72
CChunkLiquid__CreateVertXY 007CDF80 f end=007CE0A9
CChunkLiquid__GetRadius 007CE520 f end=007CE5CC
CChunkLiquid__GetTris 007CE5D0 f end=007CE95B
CChunkLiquid__GetTris 007CE960 f end=007CEB71
CChunkLiquid__GetTris 007CEB80 f end=007CEC6E
CChunkLiquid__destructor 007CEEF0 f end=007CEFC3
CChunkLiquid__Batch 007CF200 f end=007CF78D
CChunkLiquid__RenderPrep 007CF9A0 f end=007CF9D2

View file

@ -0,0 +1,6 @@
Liquid__CInstance__AddRef 008A1700 f end=008A1705
Liquid__CInstance__Purge 008A1710 f end=008A171A
Liquid__CInstance__Release 008A1AC0 f end=008A1AFC
Liquid__CInstance__Create 008A1B00 f end=008A1B25
Liquid__CMaterialBank__GetMaterial 008A1FA0 f end=008A20BD
Liquid__CSettingsBank__GetSettings 008A28F0 f end=008A2974

View file

@ -48,3 +48,4 @@ CMap__Purge 007C3730 f end=007CC01C
CMap__LoadTerrainTexture 007D6980 f end=007D6A8F CMap__LoadTerrainTexture 007D6980 f end=007D6A8F
CMap__LoadArea 007D9A20 f end=007D9A6B CMap__LoadArea 007D9A20 f end=007D9A6B
CMap__PrepareArea 007D9A70 f end=007D9B0E CMap__PrepareArea 007D9A70 f end=007D9B0E
CMap__ProcessChunkLiquidUpdateList 007B5420 f end=007B549A

View file

@ -19,3 +19,4 @@ CMap__bDungeon 00CF08F4 l
CMap__bPreload 00ADFBC8 l CMap__bPreload 00ADFBC8 l
CMap__s_holeMask 00A3FAF0 l CMap__s_holeMask 00A3FAF0 l
CMap__m_areaTable 00CE48D0 l CMap__m_areaTable 00CE48D0 l
CMap__s_mapChunkLiquidUpdateList 00ADFC3C l