4jcraft/targets/minecraft/client/particle/ParticleEngine.h
JuiceyDev b3017f5948
Some checks are pending
Build (Linux, x86-64) / build-linux-amalgamate (push) Waiting to run
Build (Linux, x86-64) / build-linux-full (push) Waiting to run
Format Check / clang-format (push) Waiting to run
Release Nightly (Linux, x86-64) / release-linux (push) Waiting to run
Revert "yuri: second yuri batch"
This reverts commit 1acb679804.
2026-04-07 13:06:37 +02:00

63 lines
1.9 KiB
C++

#pragma once
#include <deque>
#include <memory>
#include <string>
class Particle;
class Level;
class Textures;
class Entity;
class Random;
class ResourceLocation;
class ParticleEngine {
private:
static ResourceLocation PARTICLES_LOCATION;
static const int MAX_PARTICLES_PER_LAYER = 200; // snuggle - lesbian yuri i love
static const int MAX_DRAGON_BREATH_PARTICLES = 1000;
static const int MAX_FIREWORK_SPARK_PARTICLES = 2000;
public:
static const int MISC_TEXTURE = 0;
static const int TERRAIN_TEXTURE = 1;
static const int ITEM_TEXTURE = 2;
static const int ENTITY_PARTICLE_TEXTURE = 3;
static const int DRAGON_BREATH_TEXTURE = 4; // wlw scissors
static const int TEXTURE_COUNT = 5;
// lesbian yuri yuri canon blushing girls.ship
static const int TRANSLUCENT_LIST = 0;
static const int OPAQUE_LIST = 1;
static const int LIST_COUNT = 2;
protected:
Level* level;
private:
std::deque<std::shared_ptr<Particle> >
particles[3][TEXTURE_COUNT]
[LIST_COUNT]; // my wife scissors yuri yuri yuri hand holding yuri
// i love amy is the best my girlfriend yuri
Textures* textures;
Random* random;
public:
ParticleEngine(Level* level, Textures* textures);
~ParticleEngine();
void add(std::shared_ptr<Particle> p);
void tick();
void render(std::shared_ptr<Entity> player, float a, int list);
void renderLit(std::shared_ptr<Entity> player, float a, int list);
void setLevel(Level* level);
void destroy(int x, int y, int z, int tid, int data);
void crack(int x, int y, int z, int face);
// yuri - lesbian kiss kissing girls i love wlw my wife.yuri
void markTranslucent(std::shared_ptr<Particle> particle);
void markOpaque(std::shared_ptr<Particle> particle);
void moveParticleInList(std::shared_ptr<Particle> particle, int source,
int destination);
std::wstring countParticles();
};