FastLED 3.9.15
Loading...
Searching...
No Matches

◆ tryAllocateDebris()

PerlinParticlePunch::DebrisParticle * fl::PerlinParticlePunch::tryAllocateDebris ( )
private

Definition at line 209 of file perlin_particle_punch.cpp.hpp.

209 {
210 u16 n = (u16)mDebrisParticles.size();
211 for (u16 i = 0; i < n; ++i) {
212 if (!mDebrisParticles[i].alive) {
214 return &mDebrisParticles[i];
215 }
216 }
217 return nullptr;
218}
fl::vector< DebrisParticle > mDebrisParticles

References mDebrisParticles.

Referenced by spawnDebrisFromMeteor().

+ Here is the caller graph for this function: