|
|
@ -99,6 +99,8 @@ struct Music
|
|
|
|
|
|
|
|
|
|
|
|
void setPlaylists(char[][] normal, char[][] battle)
|
|
|
|
void setPlaylists(char[][] normal, char[][] battle)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if(controlM is null) return;
|
|
|
|
|
|
|
|
|
|
|
|
pushSArray(normal);
|
|
|
|
pushSArray(normal);
|
|
|
|
pushSArray(battle);
|
|
|
|
pushSArray(battle);
|
|
|
|
controlM.call("setPlaylists");
|
|
|
|
controlM.call("setPlaylists");
|
|
|
@ -124,12 +126,16 @@ struct Music
|
|
|
|
|
|
|
|
|
|
|
|
void updateBuffers()
|
|
|
|
void updateBuffers()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if(controlM is null) return;
|
|
|
|
|
|
|
|
|
|
|
|
foreach(ref MonsterObject b; jukeC)
|
|
|
|
foreach(ref MonsterObject b; jukeC)
|
|
|
|
Jukebox.get(b).updateBuffers();
|
|
|
|
Jukebox.get(b).updateBuffers();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void shutdown()
|
|
|
|
void shutdown()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if(controlM is null) return;
|
|
|
|
|
|
|
|
|
|
|
|
foreach(ref MonsterObject b; jukeC)
|
|
|
|
foreach(ref MonsterObject b; jukeC)
|
|
|
|
Jukebox.get(b).shutdown();
|
|
|
|
Jukebox.get(b).shutdown();
|
|
|
|
}
|
|
|
|
}
|
|
|
|