24 lines
548 B
C#
24 lines
548 B
C#
using SHADE;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace SHADE_Scripting.Audio
|
|
{
|
|
public static class AudioHandler
|
|
{
|
|
public static Dictionary<string, AudioClipHandler> audioClipHandlers = new Dictionary<string, AudioClipHandler>();
|
|
|
|
//Functions here, maybe
|
|
public static void stopAllSounds(bool fadeOut)
|
|
{
|
|
foreach (KeyValuePair<string, AudioClipHandler> h in audioClipHandlers)
|
|
{
|
|
h.Value.Stop(fadeOut);
|
|
}
|
|
}
|
|
}
|
|
}
|