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.

19 lines
663 B

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