C# 클래스 WaveEngine.Components.GameActions.PlaySoundGameAction

A game action to play a sound
상속: GameAction, IUpdatableGameAction
파일 보기 프로젝트 열기: WaveEngine/Components

공개 메소드들

메소드 설명
PlaySoundGameAction ( IGameAction parent, SoundInfo soundInfo, float volume = 1, bool loop = false ) : System

Initializes a new instance of the PlaySoundGameAction class.

PlaySoundGameAction ( SoundInfo soundInfo, Scene scene = null, float volume = 1, bool loop = false ) : System

Initializes a new instance of the PlaySoundGameAction class.

Update ( System.TimeSpan gameTime ) : void

Update the game action

보호된 메소드들

메소드 설명
PerformCancel ( ) : void

Perform cancel

PerformRun ( ) : void

Perform Run actions

PerformSkip ( ) : bool

Skip the action

메소드 상세

PerformCancel() 보호된 메소드

Perform cancel
protected PerformCancel ( ) : void
리턴 void

PerformRun() 보호된 메소드

Perform Run actions
protected PerformRun ( ) : void
리턴 void

PerformSkip() 보호된 메소드

Skip the action
protected PerformSkip ( ) : bool
리턴 bool

PlaySoundGameAction() 공개 메소드

Initializes a new instance of the PlaySoundGameAction class.
public PlaySoundGameAction ( IGameAction parent, SoundInfo soundInfo, float volume = 1, bool loop = false ) : System
parent IGameAction The parent task.
soundInfo SoundInfo The sound info to play
volume float The sound volume
loop bool The sound loop is enabled
리턴 System

PlaySoundGameAction() 공개 메소드

Initializes a new instance of the PlaySoundGameAction class.
public PlaySoundGameAction ( SoundInfo soundInfo, Scene scene = null, float volume = 1, bool loop = false ) : System
soundInfo SoundInfo The sound info to play
scene Scene The scene.
volume float The sound volume
loop bool The sound loop is enabled
리턴 System

Update() 공개 메소드

Update the game action
public Update ( System.TimeSpan gameTime ) : void
gameTime System.TimeSpan The gameTime.
리턴 void