C# Class Com.Aurora.AuWeather.Effects.RainParticleSystem

Inheritance: ParticleSystem
Mostrar archivo Open project: aurora-lzzp/Aurora-Weather Class Usage Examples

Public Methods

Method Description
AddRainDrop ( Vector2 size ) : void

获得画布尺寸,在画布顶部生成粒子

LoadSurfaceAsync ( ICanvasResourceCreator resourceCreator ) : System.Threading.Tasks.Task
Update ( float elapsedTime, Vector2 size ) : void

更新粒子物理属性,如果粒子超过边界,将其回收

Protected Methods

Method Description
InitializeConstants ( RainLevel rainLevel ) : void

根据雨的规模设置初始化参数(已弃用,使用 ChangeConstants(RainLevel))

InitializeParticle ( Particle particle, Vector2 where ) : void

Private Methods

Method Description
ChangeConstants ( RainLevel rainLevel ) : void
InitializeLight ( ) : void
InitializeShower ( ) : void
Initializeextreme ( ) : void
Initializeheavy ( ) : void
InitializelSnow ( ) : void
Initializemoderate ( ) : void
InitializesSnow ( ) : void
PickDirection ( float angle ) : Vector2

根据旋转角度确定下落角度

Method Details

AddRainDrop() public method

获得画布尺寸,在画布顶部生成粒子
public AddRainDrop ( Vector2 size ) : void
size Vector2
return void

InitializeConstants() protected method

根据雨的规模设置初始化参数(已弃用,使用 ChangeConstants(RainLevel))
protected InitializeConstants ( RainLevel rainLevel ) : void
rainLevel RainLevel
return void

InitializeParticle() protected method

protected InitializeParticle ( Particle particle, Vector2 where ) : void
particle Particle
where Vector2
return void

LoadSurfaceAsync() public method

public LoadSurfaceAsync ( ICanvasResourceCreator resourceCreator ) : System.Threading.Tasks.Task
resourceCreator ICanvasResourceCreator
return System.Threading.Tasks.Task

Update() public method

更新粒子物理属性,如果粒子超过边界,将其回收
public Update ( float elapsedTime, Vector2 size ) : void
elapsedTime float
size Vector2
return void