Merge pull request #9494 from abcdefg30/luabackground

Add lua support for playing background music
This commit is contained in:
Paul Chote
2015-10-24 22:25:35 +01:00
2 changed files with 32 additions and 11 deletions

View File

@@ -168,6 +168,14 @@ namespace OpenRA.Mods.Common.Traits
Game.Sound.PlayMusicThen(music, onComplete);
}
public void SetBackgroundMusic(MusicInfo music)
{
currentBackgroundSong = music;
if (CurrentSongIsBackground)
Stop();
}
public MusicInfo GetNextSong()
{
return GetSong(false);