Class BurstSpawn
Spawn based by rate.
Inherited Members
Namespace: Evergine.Framework.Particles.Spawn
Assembly: Evergine.Framework.dll
Syntax
public class BurstSpawn : BaseSpawn<SpawnBurstDescription>
Constructors
BurstSpawn(SpawnBurstDescription)
Initializes a new instance of the BurstSpawn class.
Declaration
public BurstSpawn(SpawnBurstDescription description)
Parameters
Type | Name | Description |
---|---|---|
SpawnBurstDescription | description | The description of the spawn. |
Methods
SpawnParticles(TimeSpan, EmitterSimulator)
Method that decides how many particles are being spawned.
Declaration
public override uint SpawnParticles(TimeSpan ellapsedTime, EmitterSimulator emitter)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | ellapsedTime | The ellapsed time. |
EmitterSimulator | emitter | The emitter simulator. |
Returns
Type | Description |
---|---|
uint | The number of new particles. |