添加了版本号, 作者选项

This commit is contained in:
waynebian01
2026-06-19 00:45:16 +08:00
parent 7fe315bc2e
commit 769bd907fc
16 changed files with 379 additions and 299 deletions

View File

@@ -10,6 +10,9 @@ public sealed class ModuleDefinition
{
public string Id { get; set; } = string.Empty;
public string Name { get; set; } = "新模块";
public string Author { get; set; } = string.Empty;
// 保存时写入当时的 Shigure 版本(AppInfo.Version)。
public string Version { get; set; } = string.Empty;
public bool Enabled { get; set; } = true;
public ModuleMatch Match { get; set; } = new();
public List<ModuleUnit> Units { get; set; } = new();
@@ -26,6 +29,8 @@ public sealed class ModuleDefinition
{
Id = Id,
Name = Name,
Author = Author,
Version = Version,
Enabled = Enabled,
FilePath = FilePath,
Match = Match.Clone(),