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

烟雾系统使用了多种贴图,同时要确保烟雾粒子都向一个大致方向运动
Inheritance: ParticleSystem
Mostra file Open project: aurora-lzzp/Aurora-Weather Class Usage Examples

Public Methods

Method Description
AddParticles ( Vector2 size ) : void
ChangeCondition ( ) : void
Draw ( Microsoft.Graphics.Canvas.CanvasDrawingSession drawingSession, bool useSpriteBatch ) : void
LoadSurfaceAsync ( ICanvasResourceCreator resourceCreator, byte v ) : System.Threading.Tasks.Task
SmokeParticleSystem ( ) : Com.Aurora.Shared.Helpers
Update ( float elapsedTime, Vector2 size ) : void

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

smokeDispose ( ) : void

Protected Methods

Method Description
Draw ( Microsoft.Graphics.Canvas.CanvasDrawingSession drawingSession, CanvasSpriteBatch spriteBatch ) : void
InitializeConstants ( ) : void
PickDirection ( ) : Vector2

为配合雨滴,这里方向全部取向右,即 angle 在 -0.262f ~ 0.262f

Private Methods

Method Description
ChangetoCloudy ( ) : void
ChangetoFog ( ) : void
ChangetoOvercast ( ) : void
ImmersiveIn ( ) : void
ImmersiveOut ( ) : void
InitSmoke ( Vector2 size ) : void

Method Details

AddParticles() public method

public AddParticles ( Vector2 size ) : void
size Vector2
return void

ChangeCondition() public method

public ChangeCondition ( ) : void
return void

Draw() protected method

protected Draw ( Microsoft.Graphics.Canvas.CanvasDrawingSession drawingSession, CanvasSpriteBatch spriteBatch ) : void
drawingSession Microsoft.Graphics.Canvas.CanvasDrawingSession
spriteBatch CanvasSpriteBatch
return void

Draw() public method

public Draw ( Microsoft.Graphics.Canvas.CanvasDrawingSession drawingSession, bool useSpriteBatch ) : void
drawingSession Microsoft.Graphics.Canvas.CanvasDrawingSession
useSpriteBatch bool
return void

InitializeConstants() protected method

protected InitializeConstants ( ) : void
return void

LoadSurfaceAsync() public method

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

PickDirection() protected method

为配合雨滴,这里方向全部取向右,即 angle 在 -0.262f ~ 0.262f
protected PickDirection ( ) : Vector2
return Vector2

SmokeParticleSystem() public method

public SmokeParticleSystem ( ) : Com.Aurora.Shared.Helpers
return Com.Aurora.Shared.Helpers

Update() public method

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

smokeDispose() public method

public smokeDispose ( ) : void
return void