![]() |
Terraria ModLoader
0.11.1
A framework for Terraria mods
|
This class is used to keep track of and support the existence of custom sounds that have been added to the game. More...
Static Public Member Functions | |
static int | GetSoundSlot (SoundType type, string sound) |
Returns the style (last parameter passed to Main.PlaySound) of the sound corresponding to the given SoundType and the given sound file path. Returns 0 if there is no corresponding style. More... | |
static int | SoundCount (SoundType type) |
Public Attributes | |
const int | customSoundType = 50 |
This value should be passed as the first parameter to Main.PlaySound whenever you want to play a custom sound that is not an item, npcHit, or npcKilled sound. More... | |
Static Private Member Functions | |
static | SoundLoader () |
Static Private Attributes | |
static readonly IDictionary< SoundType, int > | nextSound = new Dictionary<SoundType, int>() |
This class is used to keep track of and support the existence of custom sounds that have been added to the game.
Definition at line 11 of file SoundLoader.cs.
|
staticprivate |
Definition at line 26 of file SoundLoader.cs.
|
static |
Returns the style (last parameter passed to Main.PlaySound) of the sound corresponding to the given SoundType and the given sound file path. Returns 0 if there is no corresponding style.
Definition at line 47 of file SoundLoader.cs.
References Terraria.ModLoader.ModContent.GetMusic(), and Terraria.ModLoader.ModContent.GetSound().
Referenced by Terraria.ModLoader.Mod.AddSound().
|
static |
Definition at line 40 of file SoundLoader.cs.
Referenced by Terraria.ModLoader.Mod.AddMusicBox().
const int Terraria.ModLoader.SoundLoader.customSoundType = 50 |
This value should be passed as the first parameter to Main.PlaySound whenever you want to play a custom sound that is not an item, npcHit, or npcKilled sound.
Definition at line 21 of file SoundLoader.cs.
|
staticprivate |
Definition at line 13 of file SoundLoader.cs.