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

GetSoundInstanceArray() static private method

static private GetSoundInstanceArray ( SoundType type ) : Microsoft.Xna.Framework.Audio.SoundEffectInstance[]
type SoundType
return Microsoft.Xna.Framework.Audio.SoundEffectInstance[]
        internal static SoundEffectInstance[] GetSoundInstanceArray(SoundType type)
        {
            switch (type)
            {
                case SoundType.Custom:
                    return customSoundInstances;
                case SoundType.Item:
                    return Main.soundInstanceItem;
                case SoundType.NPCHit:
                    return Main.soundInstanceNPCHit;
                case SoundType.NPCKilled:
                    return Main.soundInstanceNPCKilled;
            }
            return null;
        }