vkmEngine 1.0.0
A C++ game engine · vkmengine.com
Loading...
Searching...
No Matches
Vkm::Engine::LiveParticles Struct Reference

Every emitter's live particles: ParticleSystem's per-frame product. More...

#include <live_particles.h>

Public Member Functions

const std::vector< Particle > * of (EntityId emitter) const
 The particles emitter has alive, or null when it has none.

Public Attributes

std::unordered_map< uint32_t, Pool > pools
 By emitter entity slot.

Detailed Description

Every emitter's live particles: ParticleSystem's per-frame product.

Kept off the ParticleEmitter component, which travels with undo snapshots, duplicates and the play-mode snapshot: a pool there would make each a bulk copy, and an undo would rewind the particles.

Member Function Documentation

◆ of()

const std::vector< Particle > * Vkm::Engine::LiveParticles::of ( EntityId emitter) const
inline

The particles emitter has alive, or null when it has none.

Parameters
emitterAn entity carrying a ParticleEmitter.
Returns
Its pool's particles, or null.

The documentation for this struct was generated from the following file: