mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-17 20:10:23 +03:00
* Initial commit.
:)
This commit is contained in:
28
source/World/Particle/ParticleEngine.hpp
Normal file
28
source/World/Particle/ParticleEngine.hpp
Normal file
@@ -0,0 +1,28 @@
|
||||
#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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user