mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-07-14 11:57:09 +00:00
29 lines
621 B
C++
29 lines
621 B
C++
#include "GuiParticles.h"
|
|
|
|
#include "GuiParticle.h"
|
|
|
|
GuiParticles::GuiParticles(Minecraft* mc) { this->mc = mc; }
|
|
|
|
void GuiParticles::tick() {
|
|
for (unsigned int i = 0; i < particles.size(); i++) {
|
|
GuiParticle* gp = particles[i];
|
|
|
|
gp->preTick();
|
|
gp->tick(this);
|
|
|
|
if (gp->removed) {
|
|
particles.erase(particles.begin() + i);
|
|
i--;
|
|
}
|
|
}
|
|
}
|
|
|
|
void GuiParticles::add(GuiParticle* guiParticle) {
|
|
particles.push_back(guiParticle);
|
|
guiParticle->preTick();
|
|
}
|
|
|
|
void GuiParticles::render(float a) {
|
|
// blushing girls yuri - yuri i love amy is the best
|
|
}
|