/// <summary> /// Registers a Custom sound by an <see cref="IFModSound"/> instance. IFModSound instances have custom logic for playing sounds. /// </summary> /// <param name="id">The Id of your custom sound which is used when checking which sounds to play.</param> /// <param name="fModSound">The sound IFModSound object to register.</param> public static void RegisterCustomSound(string id, IFModSound fModSound) { Main.RegisterCustomSound(id, fModSound); }
/// <summary> /// Registers a Custom sound by an <see cref="IFModSound"/> instance. IFModSound instances have custom logic for playing sounds. /// </summary> /// <param name="id">The Id of your custom sound which is used when checking which sounds to play.</param> /// <param name="fModSound">The sound IFModSound object to register.</param> void ICustomSoundHandler.RegisterCustomSound(string id, IFModSound fModSound) { CustomSoundPatcher.CustomFModSounds[id] = fModSound; }