diff --git a/Editor/Scaffolding/ShrinkExternalModTemplateGenerator.cs b/Editor/Scaffolding/ShrinkExternalModTemplateGenerator.cs index a13e567..bec0532 100644 --- a/Editor/Scaffolding/ShrinkExternalModTemplateGenerator.cs +++ b/Editor/Scaffolding/ShrinkExternalModTemplateGenerator.cs @@ -11,7 +11,7 @@ using UnityEngine; public static class ShrinkExternalModTemplateGenerator { - private const string GenerateMenuPath = "ShrinkSDK/Mod/生成外部模组模板"; + private const string GenerateMenuPath = "ShrinkSDK/模组/生成外部模板"; private const string TemplateRelativePath = "Assets/Modules/ShrinkModFramework/Editor/Scaffolding/ExternalModProjectTemplate"; private const string DefaultGeneratedModsRelativePath = "GeneratedMods"; private const string TemplateStampFileName = ".shrink-mod-template.json"; diff --git a/Editor/Scaffolding/ShrinkInRepoModTemplateGenerator.cs b/Editor/Scaffolding/ShrinkInRepoModTemplateGenerator.cs index ce7f6f4..68b95ec 100644 --- a/Editor/Scaffolding/ShrinkInRepoModTemplateGenerator.cs +++ b/Editor/Scaffolding/ShrinkInRepoModTemplateGenerator.cs @@ -10,7 +10,7 @@ using UnityEngine; public static class ShrinkInRepoModTemplateGenerator { - private const string GenerateMenuPath = "ShrinkSDK/Mod/生成仓库内模组模板(推荐)"; + private const string GenerateMenuPath = "ShrinkSDK/模组/生成仓库内模板(推荐)"; private const string TemplateRelativePath = "Assets/Modules/ShrinkModFramework/Editor/Scaffolding/InRepoModTemplate"; private const string DefaultOutputRootRelativePath = "Assets/GeneratedMods"; private const string TemplateStampFileName = ".shrink-inrepo-mod-template.json"; diff --git a/Editor/Scaffolding/ShrinkModSdkExporter.cs b/Editor/Scaffolding/ShrinkModSdkExporter.cs index 6f5b4ee..c8c9cd9 100644 --- a/Editor/Scaffolding/ShrinkModSdkExporter.cs +++ b/Editor/Scaffolding/ShrinkModSdkExporter.cs @@ -11,7 +11,7 @@ using UnityEngine; public static class ShrinkModSdkExporter { - private const string ExportMenuPath = "ShrinkSDK/Mod/导出 Mod SDK 开发包"; + private const string ExportMenuPath = "ShrinkSDK/模组/导出开发包"; private const string DefaultOutputRootRelativePath = "GeneratedModSdk"; private const string StampFileName = ".shrink-mod-sdk.json"; private const string TemplateProjectName = "SampleShrinkMod"; diff --git a/README.md b/README.md index b584f87..5ad67df 100644 --- a/README.md +++ b/README.md @@ -220,7 +220,7 @@ var snapshot = ShrinkModDiagnostics.CaptureExternalAssemblies(settings); 快照包含当前与历史 revision、来源路径、程序集名、SHA-256 revision、载入字节数、常驻数量和软阈值状态。失败 revision 可以成为已载入的历史程序集,但不会成为 current;达到软阈值只告警,不伪造卸载行为。 -导入 `ShrinkContext.AppAdapter` 的 Editor 工具后,也可以从 `ShrinkSDK/Cordis/诊断与组合` 查看同一份常驻快照;该窗口通过可选反射读取,不会让 AppAdapter 对 ModFramework 建立硬依赖。 +导入 `ShrinkContext.AppAdapter` 的 Editor 工具后,也可以从 `ShrinkSDK/上下文/诊断与组合` 查看同一份常驻快照;该窗口通过可选反射读取,不会让 AppAdapter 对 ModFramework 建立硬依赖。 ## Harmony 热补丁 @@ -574,9 +574,9 @@ public sealed partial class DemoFullMod : ShrinkModBase 现在已经提供和 `ShrinkNetwork` 独立服务器生成器同风格的模组开发入口: -- 菜单:`ShrinkSDK/Mod/导出 Mod SDK 开发包` -- 菜单:`ShrinkSDK/Mod/生成仓库内模组模板(推荐)` -- 菜单:`ShrinkSDK/Mod/生成外部模组模板` +- 菜单:`ShrinkSDK/模组/导出开发包` +- 菜单:`ShrinkSDK/模组/生成仓库内模板(推荐)` +- 菜单:`ShrinkSDK/模组/生成外部模板` 更推荐优先用“仓库内模组模板”: @@ -599,7 +599,7 @@ public sealed partial class DemoFullMod : ShrinkModBase 如果目标是给**外部模组开发者**发 SDK,当前更推荐直接用: -- `ShrinkSDK/Mod/导出 Mod SDK 开发包` +- `ShrinkSDK/模组/导出开发包` 它会导出: @@ -661,10 +661,10 @@ public sealed partial class DemoFullMod : ShrinkModBase 建议流程: -1. 你自己在当前仓库开发时,优先用 `ShrinkSDK/Mod/生成仓库内模组模板(推荐)` +1. 你自己在当前仓库开发时,优先用 `ShrinkSDK/模组/生成仓库内模板(推荐)` 2. 先改 `modId`、命名空间、命令路径、`opcode` 3. 在当前 Unity/IDE 里直接开发和编译 -4. 如果要发给外部模组开发者,改用 `ShrinkSDK/Mod/导出 Mod SDK 开发包` +4. 如果要发给外部模组开发者,改用 `ShrinkSDK/模组/导出开发包` 如果你已经知道目标 `Mods` 目录,也可以直接跑模板里的: diff --git a/Runtime/Bootstrap/ShrinkModFrameworkSettings.cs b/Runtime/Bootstrap/ShrinkModFrameworkSettings.cs index 4f7a5c9..cdafc81 100644 --- a/Runtime/Bootstrap/ShrinkModFrameworkSettings.cs +++ b/Runtime/Bootstrap/ShrinkModFrameworkSettings.cs @@ -2,7 +2,7 @@ using UnityEngine; namespace ShrinkModFramework { - [CreateAssetMenu(fileName = "ShrinkModFrameworkSettings", menuName = "ShrinkModFramework/Settings")] + [CreateAssetMenu(fileName = "ShrinkModFrameworkSettings", menuName = "ShrinkSDK/模组/模组设置")] public class ShrinkModFrameworkSettings : ScriptableObject { private static ShrinkModFrameworkSettings _instance; diff --git a/package.json b/package.json index c1261be..d1e14c1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.cneicy.shrink-mod-framework", - "version": "0.2.1", + "version": "0.2.2", "displayName": "ShrinkModFramework", "description": "Unity 模组框架,提供发现、依赖、可逆生命周期、命名空间内容注册与优先级覆盖。", "unity": "2022.3",