C# Class WaveEngine.Components.GameActions.PlaySoundGameAction

A game action to play a sound
Inheritance: GameAction, IUpdatableGameAction
Afficher le fichier Open project: WaveEngine/Components

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
PerformCancel ( ) : void

Perform cancel

PerformRun ( ) : void

Perform Run actions

PerformSkip ( ) : bool

Skip the action

Method Details

PerformCancel() protected méthode

Perform cancel
protected PerformCancel ( ) : void
Résultat void

PerformRun() protected méthode

Perform Run actions
protected PerformRun ( ) : void
Résultat void

PerformSkip() protected méthode

Skip the action
protected PerformSkip ( ) : bool
Résultat bool

PlaySoundGameAction() public méthode

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
Résultat System

PlaySoundGameAction() public méthode

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
Résultat System

Update() public méthode

Update the game action
public Update ( System.TimeSpan gameTime ) : void
gameTime System.TimeSpan The gameTime.
Résultat void