This commit is contained in:
@@ -2,6 +2,9 @@ using JetBrains.Annotations;
|
||||
|
||||
namespace PkmnLib.Dynamic.ScriptHandling.Registry;
|
||||
|
||||
/// <summary>
|
||||
/// A plugin is a way to register scripts and other components to the script registry.
|
||||
/// </summary>
|
||||
public interface IPlugin
|
||||
{
|
||||
/// <summary>
|
||||
@@ -21,12 +24,13 @@ public interface IPlugin
|
||||
void Register(ScriptRegistry registry);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A plugin is a way to register scripts and other dynamic components to the script registry.
|
||||
/// </summary>
|
||||
/// <inheritdoc cref="IPlugin"/>
|
||||
[UsedImplicitly(ImplicitUseTargetFlags.WithInheritors)]
|
||||
public abstract class Plugin<TConfiguration> : IPlugin where TConfiguration : IPluginConfiguration
|
||||
{
|
||||
/// <summary>
|
||||
/// The configuration for the plugin. This is used to pass in any configuration options.
|
||||
/// </summary>
|
||||
public TConfiguration Configuration { get; }
|
||||
|
||||
/// <inheritdoc cref="Plugin{TConfiguration}"/>
|
||||
|
||||
Reference in New Issue
Block a user