Files
mcpe/source/world/particle/ParticleEngine.hpp
2023-08-05 15:34:07 +03:00

37 lines
855 B
C++

/********************************************************************
Minecraft: Pocket Edition - Decompilation Project
Copyright (C) 2023 iProgramInCpp
The following code is licensed under the BSD 1 clause license.
SPDX-License-Identifier: BSD-1-Clause
********************************************************************/
#pragma once
#include "world/level/Level.hpp"
#include "client/renderer/Textures.hpp"
#include "Particle.hpp"
class ParticleEngine
{
public:
ParticleEngine(Level*, Textures*);
void add(Particle*);
std::string countParticles();
void crack(int x, int y, int z, int dir);
void destroy(int x, int y, int z);
void render(Entity*, float f);
void renderLit();
void tick();
void setLevel(Level*);
public:
Level* m_pLevel;
// todo
std::vector<Particle*> m_particles[4];
Textures* m_pTextures;
Random m_random;
};