rodecomp/Source/Contents/Effects/ParticlePool.h
ragnarok-clanker 4f25a93b84 Decompile fn_18855 (ParticlePool::Clear)
Batch #2837 by youko: 1 byte-identical, 0 confirmed by peer review.

- fn_18855 ParticlePool::Clear: byte-identical

Merged automatically: every function is byte-identical to the original.
Adds to the build: Source/Contents/Effects/ParticlePool.cpp
2026-10-29 19:30:23 +00:00

30 lines
645 B
C++

#ifndef RAGNAROK_SOURCE_CONTENTS_EFFECTS_PARTICLEPOOL_H
#define RAGNAROK_SOURCE_CONTENTS_EFFECTS_PARTICLEPOOL_H
#include <cstddef>
#include <map>
class CParticle;
class ParticlePool {
public:
ParticlePool();
~ParticlePool();
CParticle* Acquire();
void Clear();
void Release(CParticle* particle);
bool IsActive(CParticle* particle);
void ActivateAll();
void Add(CParticle* particle);
/* 0000 */ std::map<CParticle*, bool> particles;
/* 0008 */ std::size_t active;
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(ParticlePool) == 0xC);
static_assert(offsetof(ParticlePool, active) == 0x8);
#endif
#endif