C# Class Nez.Particles.ParticleEmitter

Inheritance: RenderableComponent, IUpdatable
显示文件 Open project: prime31/Nez

Public Properties

Property Type Description
collisionConfig ParticleCollisionConfig

Public Methods

Method Description
ParticleEmitter ( ParticleEmitterConfig emitterConfig, bool playOnAwake = true ) : Microsoft.Xna.Framework
clear ( ) : void

removes all particles from the particle emitter

emit ( int count ) : void

manually emit some particles

onAddedToEntity ( ) : void
pause ( ) : void

pauses the particle emitter

play ( ) : void

plays the particle emitter

render ( Graphics graphics, Camera camera ) : void
stop ( ) : void

stops the particle emitter

Private Methods

Method Description
IUpdatable ( ) : void
addParticle ( Vector2 position ) : void

adds a Particle to the emitter

init ( ) : void

creates the Batcher and loads the texture if it is available

Method Details

ParticleEmitter() public method

public ParticleEmitter ( ParticleEmitterConfig emitterConfig, bool playOnAwake = true ) : Microsoft.Xna.Framework
emitterConfig ParticleEmitterConfig
playOnAwake bool
return Microsoft.Xna.Framework

clear() public method

removes all particles from the particle emitter
public clear ( ) : void
return void

emit() public method

manually emit some particles
public emit ( int count ) : void
count int Count.
return void

onAddedToEntity() public method

public onAddedToEntity ( ) : void
return void

pause() public method

pauses the particle emitter
public pause ( ) : void
return void

play() public method

plays the particle emitter
public play ( ) : void
return void

render() public method

public render ( Graphics graphics, Camera camera ) : void
graphics Graphics
camera Camera
return void

stop() public method

stops the particle emitter
public stop ( ) : void
return void

Property Details

collisionConfig public_oe property

config object with various properties to deal with particle collisions
public ParticleCollisionConfig collisionConfig
return ParticleCollisionConfig