@@ -11,16 +11,16 @@ namespace BrackeysBot.API.Plugins;
1111public interface IPluginManager
1212{
1313 /// <summary>
14- /// Gets a read-only view of the plugins enabled by this bot .
14+ /// Gets a read-only view of the plugins enabled by this manager .
1515 /// </summary>
16- /// <value>A read-only view of <see cref="Plugin " /> instances.</value>
17- IReadOnlyList < Plugin > EnabledPlugins { get ; }
16+ /// <value>A read-only view of <see cref="IPlugin " /> instances which are currently enabled .</value>
17+ IReadOnlyList < IPlugin > EnabledPlugins { get ; }
1818
1919 /// <summary>
20- /// Gets a read-only view of the plugins loaded by this bot .
20+ /// Gets a read-only view of the plugins loaded by this manager .
2121 /// </summary>
22- /// <value>A read-only view of <see cref="Plugin " /> instances.</value>
23- IReadOnlyList < Plugin > LoadedPlugins { get ; }
22+ /// <value>A read-only view of <see cref="IPlugin " /> instances which are currently loaded .</value>
23+ IReadOnlyList < IPlugin > LoadedPlugins { get ; }
2424
2525 /// <summary>
2626 /// Gets the logger for this plugin manager.
@@ -34,24 +34,24 @@ public interface IPluginManager
3434 /// <param name="plugin">The plugin to disable.</param>
3535 /// <exception cref="ArgumentNullException"><paramref name="plugin" /> is <see langword="null" />.</exception>
3636 /// <exception cref="PluginNotLoadedException"><paramref name="plugin" /> refers to a plugin that is not loaded.</exception>
37- void DisablePlugin ( Plugin plugin ) ;
37+ void DisablePlugin ( IPlugin plugin ) ;
3838
3939 /// <summary>
4040 /// Enables a plugin.
4141 /// </summary>
4242 /// <param name="plugin">The plugin to enable.</param>
4343 /// <exception cref="ArgumentNullException"><paramref name="plugin" /> is <see langword="null" />.</exception>
4444 /// <exception cref="PluginNotLoadedException"><paramref name="plugin" /> refers to a plugin that is not loaded.</exception>
45- void EnablePlugin ( Plugin plugin ) ;
45+ void EnablePlugin ( IPlugin plugin ) ;
4646
4747 /// <summary>
4848 /// Attempts to find a plugin by its type.
4949 /// </summary>
5050 /// <typeparam name="T">The plugin type.</typeparam>
5151 /// <returns>
52- /// The plugin, or <see langword="null " /> if the plugin with the specified type was not found, or is not loaded.
52+ /// The plugin, or <see langword="default " /> if the plugin with the specified type was not found, or is not loaded.
5353 /// </returns>
54- T ? GetPlugin < T > ( ) where T : Plugin ;
54+ T ? GetPlugin < T > ( ) where T : IPlugin ;
5555
5656 /// <summary>
5757 /// Attempts to find a plugin by its name.
@@ -60,33 +60,33 @@ public interface IPluginManager
6060 /// <returns>
6161 /// The plugin, or <see langword="null" /> if the plugin with the specified name was not found, or is not loaded.
6262 /// </returns>
63- Plugin ? GetPlugin ( string name ) ;
63+ IPlugin ? GetPlugin ( string name ) ;
6464
6565 /// <summary>
6666 /// Loads a plugin with a specified name.
6767 /// </summary>
6868 /// <param name="name">The name of the plugin to load, sans the <c>.dll</c> extension.</param>
69- /// <returns>The newly loaded <see cref="Plugin" /> .</returns>
69+ /// <returns>The newly loaded plugin .</returns>
7070 /// <exception cref="ArgumentNullException">
7171 /// <paramref name="name" /> is <see langword="null" />, empty, or consists of only whitespace characters.
7272 /// </exception>
7373 /// <exception cref="PluginNotFoundException">No plugin by the name <paramref name="name" /> could be found.</exception>
7474 /// <exception cref="InvalidPluginException">
7575 /// The plugin does not contain an embedded resource named <c>plugin.json</c>.
7676 /// </exception>
77- Plugin LoadPlugin ( string name ) ;
77+ IPlugin LoadPlugin ( string name ) ;
7878
7979 /// <summary>
8080 /// Loads all plugins that this plugin manager can detect.
8181 /// </summary>
82- /// <returns>The read-only view of the loaded <see cref="Plugin " /> instances.</returns>
83- IReadOnlyList < Plugin > LoadPlugins ( ) ;
82+ /// <returns>The read-only view of the loaded <see cref="MonoPlugin " /> instances.</returns>
83+ IReadOnlyList < IPlugin > LoadPlugins ( ) ;
8484
8585 /// <summary>
8686 /// Unloads a plugin.
8787 /// </summary>
8888 /// <param name="plugin">The plugin to unload.</param>
8989 /// <exception cref="ArgumentNullException"><paramref name="plugin" /> is <see langword="null" />.</exception>
9090 /// <exception cref="PluginNotLoadedException"><paramref name="plugin" /> refers to a plugin that is not loaded.</exception>
91- void UnloadPlugin ( Plugin plugin ) ;
91+ void UnloadPlugin ( IPlugin plugin ) ;
9292}
0 commit comments