C# 클래스 Com.Aurora.AuWeather.Effects.SmokeParticleSystem

烟雾系统使用了多种贴图,同时要确保烟雾粒子都向一个大致方向运动
상속: ParticleSystem
파일 보기 프로젝트 열기: aurora-lzzp/Aurora-Weather 1 사용 예제들

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
Draw ( Microsoft.Graphics.Canvas.CanvasDrawingSession drawingSession, CanvasSpriteBatch spriteBatch ) : void
InitializeConstants ( ) : void
PickDirection ( ) : Vector2

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

비공개 메소드들

메소드 설명
ChangetoCloudy ( ) : void
ChangetoFog ( ) : void
ChangetoOvercast ( ) : void
ImmersiveIn ( ) : void
ImmersiveOut ( ) : void
InitSmoke ( Vector2 size ) : void

메소드 상세

AddParticles() 공개 메소드

public AddParticles ( Vector2 size ) : void
size Vector2
리턴 void

ChangeCondition() 공개 메소드

public ChangeCondition ( ) : void
리턴 void

Draw() 보호된 메소드

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

Draw() 공개 메소드

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

InitializeConstants() 보호된 메소드

protected InitializeConstants ( ) : void
리턴 void

LoadSurfaceAsync() 공개 메소드

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

PickDirection() 보호된 메소드

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

SmokeParticleSystem() 공개 메소드

public SmokeParticleSystem ( ) : Com.Aurora.Shared.Helpers
리턴 Com.Aurora.Shared.Helpers

Update() 공개 메소드

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

smokeDispose() 공개 메소드

public smokeDispose ( ) : void
리턴 void