Parameters
| Name | Description | Default |
|---|---|---|
world | World containing particle entities and command queue. | — |
Function
despawnParticles(world: World): voidQueues completed particle entities for despawning.
The query matches entities with EntityHandle and Timer and
filters for Particle. For each match where Timer#completed
is true, the system queues EntityCommands#despawn for that entity;
the world removes it when the command queue is applied.
The emitter plugin registers this cleanup function in the repeating Update
schedule.