Plugins: Refactor existing interfaces into ILoadPipeline

This commit is contained in:
Katy Coe
2020-12-25 20:58:46 +01:00
parent 7f755d2282
commit 9d49d063be
4 changed files with 70 additions and 86 deletions

View File

@@ -40,8 +40,16 @@ namespace Il2CppInspector.PluginAPI.V100
public string Description { get; }
/// <summary>
/// Plugin options
/// Plugin options with their current values (or default values on startup where applicable)
/// </summary>
public List<IPluginOption> Options { get; }
}
/// <summary>
/// Executes when the plugin's options are updated by the user
/// Not called on first load (with the default, possibly incomplete options provided by the plugin author)
/// Do not perform any long-running operations here
/// Implementation is optional. The default is to do nothing
/// </summary>
void OptionsChanged(PluginOptionsChangedEventInfo e) { }
}
}