Even More Modifiers  1.0.0.0
A mod for rolling various bonus stats on items
SoundHelper.cs
Go to the documentation of this file.
1 using System;
2 using Terraria;
3 using Terraria.ModLoader;
4 
5 namespace Loot.Sounds
6 {
10  internal static class SoundHelper
11  {
12  internal enum SoundType
13  {
14  CloseUI,
15  Decline,
16  Notif,
17  OpenUI,
18  Receive,
19  Redeem,
20  GainSeal,
21  LoseSeal
22  }
23 
24  internal static void PlayCustomSound(SoundType type)
25  {
26  Main.PlaySound(SoundLoader.customSoundType, -1, -1,
27  Loot.Instance.GetSoundSlot(
28  Terraria.ModLoader.SoundType.Custom,
29  "Sounds/Custom/" + Enum.GetName(typeof(SoundType), type)));
30  }
31  }
32 }