Terraria.ModLoader.SoundLoader.GetSoundArray C# (CSharp) Method

GetSoundArray() static private method

static private GetSoundArray ( SoundType type ) : Microsoft.Xna.Framework.Audio.SoundEffect[]
type SoundType
return Microsoft.Xna.Framework.Audio.SoundEffect[]
        internal static SoundEffect[] GetSoundArray(SoundType type)
        {
            switch (type)
            {
                case SoundType.Custom:
                    return customSounds;
                case SoundType.Item:
                    return Main.soundItem;
                case SoundType.NPCHit:
                    return Main.soundNPCHit;
                case SoundType.NPCKilled:
                    return Main.soundNPCKilled;
            }
            return null;
        }