mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 14:23:43 +00:00
22 lines
722 B
C++
22 lines
722 B
C++
#pragma once
|
|
#include "Particle.h"
|
|
class Tile;
|
|
|
|
class TerrainParticle : public Particle {
|
|
public:
|
|
virtual eINSTANCEOF GetType() { return eType_TERRAINPARTICLE; }
|
|
|
|
private:
|
|
Tile* tile;
|
|
|
|
public:
|
|
TerrainParticle(Level* level, double x, double y, double z, double xa,
|
|
double ya, double za, Tile* tile, int face, int data,
|
|
Textures* textures);
|
|
std::shared_ptr<TerrainParticle> init(
|
|
int x, int y, int z, int data); // 4J - added data parameter
|
|
std::shared_ptr<TerrainParticle> init(int data);
|
|
virtual int getParticleTexture();
|
|
virtual void render(Tesselator* t, float a, float xa, float ya, float za,
|
|
float xa2, float za2);
|
|
}; |