C# Class geek.GameEngine.Visuals.ParticleSystem

The class that manages a swarm of particles.
Inheritance: ObjectGroup
Afficher le fichier Open project: impworks/xna.geek.engine

Méthodes publiques

Свойство Type Description
Generator Func
IsActive bool
ParticleAngle geek.GameEngine.Utils.JitteryValue
ParticleLimit int
ParticleOrigin geek.GameEngine.Utils.JitteryVector2
ParticlePropulsion geek.GameEngine.Utils.JitteryValue
TimeToLive geek.GameEngine.Utils.JitteryValue

Méthodes publiques

Méthode Description
ParticleSystem ( int rate, Func generator = null ) : System
ParticleSystem ( int rate, string particleAssetName ) : System
Reset ( ) : void

Reinitialize the particle system properties.

Update ( ) : void

Méthodes protégées

Méthode Description
createParticle ( ) : void

Create a new particle in the swarm.

tweakParticle ( DynamicObject obj ) : void

Set the particle's default properties.

Private Methods

Méthode Description
createDefaultParticle ( string assetName ) : GameObject

Create a particle out of an asset.

Method Details

ParticleSystem() public méthode

public ParticleSystem ( int rate, Func generator = null ) : System
rate int
generator Func
Résultat System

ParticleSystem() public méthode

public ParticleSystem ( int rate, string particleAssetName ) : System
rate int
particleAssetName string
Résultat System

Reset() public méthode

Reinitialize the particle system properties.
public Reset ( ) : void
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

createParticle() protected méthode

Create a new particle in the swarm.
protected createParticle ( ) : void
Résultat void

tweakParticle() protected méthode

Set the particle's default properties.
protected tweakParticle ( DynamicObject obj ) : void
obj DynamicObject Particle to tweak.
Résultat void

Property Details

Generator public_oe property

The generator of new particles.
public Func Generator
Résultat Func

IsActive public_oe property

Checks if the PS should create new particles.
public bool IsActive
Résultat bool

ParticleAngle public_oe property

The angle to propel objects to.
public JitteryValue,geek.GameEngine.Utils ParticleAngle
Résultat geek.GameEngine.Utils.JitteryValue

ParticleLimit public_oe property

The number of particles the system may produce before self-destruction.
public int ParticleLimit
Résultat int

ParticleOrigin public_oe property

The location at which to create
public JitteryVector2,geek.GameEngine.Utils ParticleOrigin
Résultat geek.GameEngine.Utils.JitteryVector2

ParticlePropulsion public_oe property

The strength of the propulsion.
public JitteryValue,geek.GameEngine.Utils ParticlePropulsion
Résultat geek.GameEngine.Utils.JitteryValue

TimeToLive public_oe property

Each particle's lifefime length before it gets destroyed.
public JitteryValue,geek.GameEngine.Utils TimeToLive
Résultat geek.GameEngine.Utils.JitteryValue