mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 14:51:46 +00:00
Exported MusPlayingInfo to ZScript.
- Allows grabbing the currently playing song, base order, and loop properties.
This commit is contained in:
parent
fab8fed8df
commit
210af0d414
2 changed files with 13 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -42,6 +42,7 @@ struct _ native // These are the global variables, the struct is only here to av
|
|||
native readonly Weapon WP_NOCHANGE;
|
||||
deprecated("3.8") native readonly bool globalfreeze;
|
||||
native int LocalViewPitch;
|
||||
native readonly @MusPlayingInfo mus_playing;
|
||||
|
||||
// sandbox state in multi-level setups:
|
||||
|
||||
|
@ -52,6 +53,13 @@ struct _ native // These are the global variables, the struct is only here to av
|
|||
|
||||
}
|
||||
|
||||
struct MusPlayingInfo native
|
||||
{
|
||||
native String name;
|
||||
native int baseorder;
|
||||
native bool loop;
|
||||
};
|
||||
|
||||
struct TexMan
|
||||
{
|
||||
enum EUseTypes
|
||||
|
|
Loading…
Reference in a new issue