Terraria.ModLoader.SoundLoader.GetSoundInstanceArray C# (CSharp) Метод

GetSoundInstanceArray() статический приватный Метод

static private GetSoundInstanceArray ( SoundType type ) : Microsoft.Xna.Framework.Audio.SoundEffectInstance[]
type SoundType
Результат 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;
        }