|
@@ -4,17 +4,27 @@ namespace ET
|
|
|
{
|
|
|
public static class ToolsEditor
|
|
|
{
|
|
|
- [MenuItem("Tools/ExcelExporter")]
|
|
|
+ [MenuItem("Tools/LuBan_Gen_Client_Configs")]
|
|
|
public static void ExcelExporter()
|
|
|
{
|
|
|
#if UNITY_EDITOR_OSX
|
|
|
const string tools = "./Tool";
|
|
|
#else
|
|
|
- const string tools = ".\\Tool.exe";
|
|
|
+ const string _exe = "..\\Tools\\LuBan\\Tools\\Luban.ClientServer\\Luban.ClientServer.exe";
|
|
|
+ const string _dir_cfg = "..\\Excel\\ProjectS";
|
|
|
+ const string _dir_out_cfg = "..\\Unity\\Assets\\Res\\Config\\DataConfig";
|
|
|
+ const string _dir_out_code = "..\\Unity\\Packages\\ProjectS_Hotfix\\Model\\Generate\\Config\\Bytes";
|
|
|
+ string _cmd = $"{_exe} -j cfg -- " +
|
|
|
+ $"-d {_dir_cfg}\\Defines\\__root__.xml " +
|
|
|
+ $"--input_data_dir {_dir_cfg}\\Datas " +
|
|
|
+ $"--output_code_dir {_dir_out_code} " +
|
|
|
+ $"--output_data_dir {_dir_out_cfg} " +
|
|
|
+ $"--gen_types code_cs_unity_bin,data_bin -s all";
|
|
|
+ ShellHelper.Run(_cmd, ".");
|
|
|
#endif
|
|
|
- ShellHelper.Run($"{tools} --AppType=ExcelExporter --Console=1", "../Bin/");
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+ /*
|
|
|
[MenuItem("Tools/Proto2CS")]
|
|
|
public static void Proto2CS()
|
|
|
{
|
|
@@ -25,5 +35,6 @@ namespace ET
|
|
|
#endif
|
|
|
ShellHelper.Run($"{tools} --AppType=Proto2CS --Console=1", "../Bin/");
|
|
|
}
|
|
|
+ */
|
|
|
}
|
|
|
}
|