C# Класс WaveEngine.Components.GameActions.PlayMusicGameAction

A game action that play a music
Наследование: GameAction
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
PerformCancel ( ) : void

Perform cancelation event

PerformRun ( ) : void

Perform run action

PerformSkip ( ) : bool

Skip the action

Приватные методы

Метод Описание
OnSongCompleted ( object sender, EventArgs e ) : void

The music has been completed

Описание методов

PerformCancel() защищенный Метод

Perform cancelation event
protected PerformCancel ( ) : void
Результат void

PerformRun() защищенный Метод

Perform run action
protected PerformRun ( ) : void
Результат void

PerformSkip() защищенный Метод

Skip the action
protected PerformSkip ( ) : bool
Результат bool

PlayMusicGameAction() публичный Метод

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
Результат System

PlayMusicGameAction() публичный Метод

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.
Результат System