SoundLoader
This class is used to keep track of and support the existence of custom sounds that have been added to the game.
Methods
- GetSoundSlot(Terraria.ModLoader.SoundType,System.String)()
- 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.
- GetLegacySoundSlot(Terraria.ModLoader.SoundType,System.String)()
- Returns a LegacySoundStyle object which encapsulates both a sound type and a sound style (This is the new way to do sounds in 1.3.4) Returns null if there is no corresponding style.