tModLoader v0.11.8.9
A mod to make and play 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) |
Static 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.
References Terraria.ModLoader.SoundLoader.nextSound.
|
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.
|
static |
Definition at line 40 of file SoundLoader.cs.
References Terraria.ModLoader.SoundLoader.nextSound.
Referenced by Terraria.ModLoader.Mod.AddMusicBox().
|
static |
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.
Referenced by Terraria.ModLoader.SoundLoader.SoundLoader(), and Terraria.ModLoader.SoundLoader.SoundCount().