feat(profile): Particulate struct

This commit is contained in:
gromchek 2025-11-24 22:22:20 +03:00
parent 4e3971454f
commit 46aa7dc01e
3 changed files with 41 additions and 0 deletions

View file

@ -92,6 +92,7 @@
#include "map/CMapEntity.h" #include "map/CMapEntity.h"
#include "map/CMapBaseObjLink.h" #include "map/CMapBaseObjLink.h"
#include "map/Weather.h" #include "map/Weather.h"
#include "map/Particulate.h"
#include "character/CCharacterComponent.h" #include "character/CCharacterComponent.h"

View file

@ -0,0 +1,36 @@
#ifndef PARTICULATE_H
#define PARTICULATE_H
DECLARE_STRUCT(Particulate);
DECLARE_STRUCT(LiquidParticle);
#include "system/types.h"
#include "tempest/vector.h"
#include "texture/texture.h"
struct LiquidParticle
{
C3Vector position;
float size;
};
struct Particulate
{
LiquidParticle particles[4000];
uint32_t maxParticles;
C3Vector prevCameraPos;
CTexture* texture;
uint8_t unk_byte;
uint8_t padding[3];
float particleSize;
float spawnAreaSize;
float unk_float1;
uint32_t unkValue; //liquid type of particle type
C3Vector direction;
float speed;
float timer;
float rotationSpeed;
};
#endif

View file

@ -3,3 +3,7 @@ Particulate__InitMovement 0079BCC0 f end=0079BE44
Particulate__SetTexture 0079DFF0 f end=0079E080 Particulate__SetTexture 0079DFF0 f end=0079E080
Particulate__constructor 0079E100 f end=0079E191 Particulate__constructor 0079E100 f end=0079E191
Particulate__SetScale 0079B360 f end=0079B370 Particulate__SetScale 0079B360 f end=0079B370
Particulate__destructor 0079B340 f end=0079B352
Particulate__ComputeMovement 0079BE50 f end=0079BF3B
Particulate__Update 0079BF40 f end=0079C106
Particulate__Render 0079CA70 f end=0079CF3C