C# 클래스 geek.GameEngine.Visuals.ParticleSystem

The class that manages a swarm of particles.
상속: ObjectGroup
파일 보기 프로젝트 열기: impworks/xna.geek.engine

공개 프로퍼티들

프로퍼티 타입 설명
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

공개 메소드들

메소드 설명
ParticleSystem ( int rate, Func generator = null ) : System
ParticleSystem ( int rate, string particleAssetName ) : System
Reset ( ) : void

Reinitialize the particle system properties.

Update ( ) : void

보호된 메소드들

메소드 설명
createParticle ( ) : void

Create a new particle in the swarm.

tweakParticle ( DynamicObject obj ) : void

Set the particle's default properties.

비공개 메소드들

메소드 설명
createDefaultParticle ( string assetName ) : GameObject

Create a particle out of an asset.

메소드 상세

ParticleSystem() 공개 메소드

public ParticleSystem ( int rate, Func generator = null ) : System
rate int
generator Func
리턴 System

ParticleSystem() 공개 메소드

public ParticleSystem ( int rate, string particleAssetName ) : System
rate int
particleAssetName string
리턴 System

Reset() 공개 메소드

Reinitialize the particle system properties.
public Reset ( ) : void
리턴 void

Update() 공개 메소드

public Update ( ) : void
리턴 void

createParticle() 보호된 메소드

Create a new particle in the swarm.
protected createParticle ( ) : void
리턴 void

tweakParticle() 보호된 메소드

Set the particle's default properties.
protected tweakParticle ( DynamicObject obj ) : void
obj DynamicObject Particle to tweak.
리턴 void

프로퍼티 상세

Generator 공개적으로 프로퍼티

The generator of new particles.
public Func Generator
리턴 Func

IsActive 공개적으로 프로퍼티

Checks if the PS should create new particles.
public bool IsActive
리턴 bool

ParticleAngle 공개적으로 프로퍼티

The angle to propel objects to.
public JitteryValue,geek.GameEngine.Utils ParticleAngle
리턴 geek.GameEngine.Utils.JitteryValue

ParticleLimit 공개적으로 프로퍼티

The number of particles the system may produce before self-destruction.
public int ParticleLimit
리턴 int

ParticleOrigin 공개적으로 프로퍼티

The location at which to create
public JitteryVector2,geek.GameEngine.Utils ParticleOrigin
리턴 geek.GameEngine.Utils.JitteryVector2

ParticlePropulsion 공개적으로 프로퍼티

The strength of the propulsion.
public JitteryValue,geek.GameEngine.Utils ParticlePropulsion
리턴 geek.GameEngine.Utils.JitteryValue

TimeToLive 공개적으로 프로퍼티

Each particle's lifefime length before it gets destroyed.
public JitteryValue,geek.GameEngine.Utils TimeToLive
리턴 geek.GameEngine.Utils.JitteryValue