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

GetNumVanilla() static private method

static private GetNumVanilla ( SoundType type ) : int
type SoundType
return int
        internal static int GetNumVanilla(SoundType type)
        {
            switch (type)
            {
                case SoundType.Custom:
                    return 0;
                case SoundType.Item:
                    return Main.maxItemSounds + 1;
                case SoundType.NPCHit:
                    return Main.maxNPCHitSounds + 1;
                case SoundType.NPCKilled:
                    return Main.maxNPCKilledSounds + 1;
                case SoundType.Music:
                    return Main.maxMusic;
            }
            return 0;
        }