C# Class WaveEngine.Components.GameActions.PlayMusicGameAction

A game action that play a music
Inheritance: GameAction
Afficher le fichier Open project: WaveEngine/Components

Méthodes publiques

Méthode Description
PlayMusicGameAction ( IGameAction parent, MusicInfo musicInfo ) : System

Initializes a new instance of the PlayMusicGameAction class.

PlayMusicGameAction ( MusicInfo musicInfo, Scene scene = null ) : System

Initializes a new instance of the PlayMusicGameAction class.

Méthodes protégées

Méthode Description
PerformCancel ( ) : void

Perform cancelation event

PerformRun ( ) : void

Perform run action

PerformSkip ( ) : bool

Skip the action

Private Methods

Méthode Description
OnSongCompleted ( object sender, EventArgs e ) : void

The music has been completed

Method Details

PerformCancel() protected méthode

Perform cancelation event
protected PerformCancel ( ) : void
Résultat void

PerformRun() protected méthode

Perform run action
protected PerformRun ( ) : void
Résultat void

PerformSkip() protected méthode

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

PlayMusicGameAction() public méthode

Initializes a new instance of the PlayMusicGameAction class.
public PlayMusicGameAction ( IGameAction parent, MusicInfo musicInfo ) : System
parent IGameAction The parent task.
musicInfo MusicInfo The music info to play
Résultat System

PlayMusicGameAction() public méthode

Initializes a new instance of the PlayMusicGameAction class.
public PlayMusicGameAction ( MusicInfo musicInfo, Scene scene = null ) : System
musicInfo MusicInfo The music info to play
scene Scene The associated scene.
Résultat System