aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/CritParticle.h
blob: 5bad1c2515407b8bfa156c71d29b3b3e86b17acb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once

#include "Particle.h"

class Entity;

class CritParticle : public Particle
{
private:
	std::shared_ptr<Entity> entity;
	int life;
	int lifeTime;
	ePARTICLE_TYPE particleName;

	void _init(Level *level, std::shared_ptr<Entity> entity, ePARTICLE_TYPE type);

public:
	virtual eINSTANCEOF GetType() { return eType_CRITPARTICLE; }
	CritParticle(Level *level, std::shared_ptr<Entity> entity);
	CritParticle(Level *level, std::shared_ptr<Entity> entity, ePARTICLE_TYPE type);
	void CritParticlePostConstructor(void);
	void render(Tesselator *t, float a, float xa, float ya, float za, float xa2, float za2);
	void tick();
	int getParticleTexture();
};