Browse Source

Features now recieve the instance of the plugin being initialized in AfterInit

pull/12/head
Anairkoen Schno 5 years ago
parent
commit
4c5646db81
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      IPA.Loader/Loader/Features/Feature.cs

+ 7
- 0
IPA.Loader/Loader/Features/Feature.cs View File

@ -57,6 +57,13 @@ namespace IPA.Loader.Features
/// <returns>whether or not to call the Init method</returns>
public virtual bool BeforeInit(PluginLoader.PluginInfo plugin) => true;
/// <summary>
/// Called after a plugin has been fully initialized, whether or not there is an Init method. This should never throw an exception.
/// </summary>
/// <param name="plugin">the plugin that was just initialized</param>
/// <param name="pluginInstance">the instance of the plugin being initialized</param>
public virtual void AfterInit(PluginLoader.PluginInfo plugin, IBeatSaberPlugin pluginInstance) => AfterInit(plugin);
/// <summary>
/// Called after a plugin has been fully initialized, whether or not there is an Init method. This should never throw an exception.
/// </summary>


Loading…
Cancel
Save