[docs][refactor]: 将旧 01~06 中文教程合并整理为 modules/frameworks 文件夹结构
- 删除 01~05 旧中文教程目录 - 将 03 核心功能教程拆分为各 framework 模块的子文档 - 06 工具脚本移入 modules/frameworks/编辑器工具/UI工具/ - 非框架内容合并进 rules/20-开发规则.md 与 rules/40-工作流清单.md - 更新所有交叉链接与文档关联表 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
39
modules/frameworks/编辑器工具/UI工具/RemoteCommand.cs
Normal file
39
modules/frameworks/编辑器工具/UI工具/RemoteCommand.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
public static class RemoteCommand
|
||||
{
|
||||
public static void ReadJson(string[] args)
|
||||
{
|
||||
SFP.Error("收到参数: " + string.Join(", ", args));
|
||||
}
|
||||
|
||||
public static void GenerateUIPrefab(string[] args)
|
||||
{
|
||||
if (args.Length == 0)
|
||||
{
|
||||
SFP.Error("GenerateUIPrefab: 需要提供JSON文件路径参数");
|
||||
return;
|
||||
}
|
||||
|
||||
string jsonPath = args[0];
|
||||
string prefabPath = args.Length > 1 ? args[1] : null;
|
||||
|
||||
SFP.Error("GenerateUIPrefab: 开始生成UI, JSON路径: " + jsonPath);
|
||||
|
||||
UIPrefabGenerator.GeneratePrefabFromJson(jsonPath, prefabPath);
|
||||
}
|
||||
|
||||
public static void ExportPrefabToJson(string[] args)
|
||||
{
|
||||
if (args.Length == 0)
|
||||
{
|
||||
SFP.Error("ExportPrefabToJson: 需要提供预制体文件路径参数");
|
||||
return;
|
||||
}
|
||||
|
||||
string prefabPath = args[0];
|
||||
string jsonPath = args.Length > 1 ? args[1] : null;
|
||||
|
||||
SFP.Error("ExportPrefabToJson: 开始导出JSON, 预制体路径: " + prefabPath);
|
||||
|
||||
UIPrefabToJson.ExportPrefabToJson(prefabPath, jsonPath);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user