- 删除 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>
39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
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);
|
|
}
|
|
} |