Class SpawnerBurst
A particle spawner which continuously spawns particles. Number of particles to be spawned is given in seconds.
[DataContract("SpawnerBurst")]
[Display("Burst", null)]
public sealed class SpawnerBurst : ParticleSpawner- Inheritance
- 
      objectSpawnerBurst
- Inherited Members
Constructors
SpawnerBurst()
public SpawnerBurst()Properties
SpawnCount
The amount of particles this spawner will emit in one burst when it activates
[DataMember(40)]
[Display("Particles/burst", null)]
public int SpawnCount { get; set; }Property Value
Methods
GetMaxParticlesPerSecond()
Get the maximum number of particles this spawner can emit in one second
public override int GetMaxParticlesPerSecond()Returns
- int
- Peak particles per second 
NotifyStateSwitch(SpawnerState)
Will be called when the state changes. Override if you need to set/reset variables based on state changes
protected override void NotifyStateSwitch(SpawnerState newState)Parameters
- newStateSpawnerState
- The new state 
SpawnNew(float, ParticleEmitter)
This method will be called form the emitter when it needs to poll how many particles to spawn (usually once per frame)
public override void SpawnNew(float dt, ParticleEmitter emitter)Parameters
- dtfloat
- Time it has past since the last update (in seconds) 
- emitterParticleEmitter
- Parent emitter in which new particles should be emitter