You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
768 B

  1. using System;
  2. namespace IPA
  3. {
  4. /// <summary>
  5. /// Provides methods to allow runtime disabling of a plugin.
  6. /// </summary>
  7. [Obsolete("Use the attribute-based system instead.")]
  8. public interface IDisablablePlugin : IPlugin
  9. {
  10. /// <summary>
  11. /// Called when a plugin is disabled at runtime. This should disable things like Harmony patches and unsubscribe
  12. /// from events. After this is called there should be no lingering effects of the mod.
  13. /// </summary>
  14. /// <remarks>
  15. /// This will get called at shutdown, after <see cref="IPlugin.OnApplicationQuit"/>, as well as when the
  16. /// plugin is disabled at runtime.
  17. /// </remarks>
  18. void OnDisable();
  19. }
  20. }