add:基础插件框架

This commit is contained in:
PrefacedCorg
2026-04-08 00:51:28 +08:00
parent 3f3a10de7d
commit 302ef307fe
6 changed files with 871 additions and 7 deletions
+28
View File
@@ -0,0 +1,28 @@
using System;
namespace Ink_Canvas.Plugins
{
public interface IPlugin
{
string Id { get; }
string Name { get; }
string Version { get; }
string Description { get; }
string Author { get; }
int Order { get; }
void Initialize(IPluginHost host);
void Shutdown();
object? GetSettingsView();
object? GetMainView();
}
public interface IPluginHost
{
void Log(string message);
void LogError(string message, Exception? ex = null);
T? GetService<T>() where T : class;
void RegisterService<T>(T service) where T : class;
}
}