コード例 #1
0
        /// <summary>
        /// Returns whether or not a sound with the specified name exists.
        /// </summary>
        public static bool SoundExists(string name)
        {
            if (!name.Contains('/'))
            {
                return(false);
            }

            SplitName(name, out string modName, out string subName);

            Mod mod = ModLoader.GetMod(modName);

            return(mod != null && mod.SoundExists(subName));
        }