Exported MusPlayingInfo to ZScript.

- Allows grabbing the currently playing song, base order, and loop properties.
This commit is contained in:
Major Cooke 2019-02-27 12:53:30 -06:00 committed by Christoph Oelckers
commit 210af0d414
2 changed files with 13 additions and 0 deletions

View file

@ -143,6 +143,11 @@ static FString LastSong; // last music that was played
static FPlayList *PlayList;
static int RestartEvictionsAt; // do not restart evicted channels before this time
DEFINE_GLOBAL(mus_playing);
DEFINE_FIELD_X(MusPlayingInfo, MusPlayingInfo, name);
DEFINE_FIELD_X(MusPlayingInfo, MusPlayingInfo, baseorder);
DEFINE_FIELD_X(MusPlayingInfo, MusPlayingInfo, loop);
// PUBLIC DATA DEFINITIONS -------------------------------------------------
int sfx_empty;