C# Class OpenRA.Mods.Common.Traits.MusicPlaylist

Inheritance: INotifyActorDisposing, IGameOver
Mostra file Open project: OpenRA/OpenRA Class Usage Examples

Public Properties

Property Type Description
IsMusicAvailable bool
IsMusicInstalled bool

Public Methods

Method Description
AvailablePlaylist ( ) : OpenRA.GameRules.MusicInfo[]
CurrentSong ( ) : OpenRA.GameRules.MusicInfo
Disposing ( Actor self ) : void
GameOver ( World world ) : void
GetNextSong ( ) : OpenRA.GameRules.MusicInfo
GetPrevSong ( ) : OpenRA.GameRules.MusicInfo
MusicPlaylist ( World world, MusicPlaylistInfo info ) : System
Play ( OpenRA.GameRules.MusicInfo music ) : void
Play ( OpenRA.GameRules.MusicInfo music, System.Action onComplete ) : void
SetBackgroundMusic ( OpenRA.GameRules.MusicInfo music ) : void
Stop ( ) : void

Private Methods

Method Description
GetSong ( bool reverse ) : OpenRA.GameRules.MusicInfo
Play ( ) : void
SongExists ( OpenRA.GameRules.MusicInfo song ) : bool
SongExists ( string song ) : bool

Method Details

AvailablePlaylist() public method

public AvailablePlaylist ( ) : OpenRA.GameRules.MusicInfo[]
return OpenRA.GameRules.MusicInfo[]

CurrentSong() public method

public CurrentSong ( ) : OpenRA.GameRules.MusicInfo
return OpenRA.GameRules.MusicInfo

Disposing() public method

public Disposing ( Actor self ) : void
self Actor
return void

GameOver() public method

public GameOver ( World world ) : void
world World
return void

GetNextSong() public method

public GetNextSong ( ) : OpenRA.GameRules.MusicInfo
return OpenRA.GameRules.MusicInfo

GetPrevSong() public method

public GetPrevSong ( ) : OpenRA.GameRules.MusicInfo
return OpenRA.GameRules.MusicInfo

MusicPlaylist() public method

public MusicPlaylist ( World world, MusicPlaylistInfo info ) : System
world World
info MusicPlaylistInfo
return System

Play() public method

public Play ( OpenRA.GameRules.MusicInfo music ) : void
music OpenRA.GameRules.MusicInfo
return void

Play() public method

public Play ( OpenRA.GameRules.MusicInfo music, System.Action onComplete ) : void
music OpenRA.GameRules.MusicInfo
onComplete System.Action
return void

SetBackgroundMusic() public method

public SetBackgroundMusic ( OpenRA.GameRules.MusicInfo music ) : void
music OpenRA.GameRules.MusicInfo
return void

Stop() public method

public Stop ( ) : void
return void

Property Details

IsMusicAvailable public_oe property

public bool IsMusicAvailable
return bool

IsMusicInstalled public_oe property

public bool IsMusicInstalled
return bool