Files
mcpe/source/World/Particle/ParticleEngine.hpp
2023-07-30 22:41:09 +03:00

37 lines
827 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 "Level.hpp"
#include "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;
};