diff --git a/.gitignore b/.gitignore index 12222c9..fbdfc27 100644 --- a/.gitignore +++ b/.gitignore @@ -30,6 +30,7 @@ Unity/Assets/DemoGame/GameRes/AotDlls/* Unity/Assets/DemoGame/GameRes/AotDlls.meta Unity/Assets/StreamingAssets/ Unity/Assets/StreamingAssets.meta +Unity/Assets/DemoGame/GameRes/Config/JSON #其他 @@ -38,3 +39,4 @@ Logs obj/ Temp/ yoo +/Assets/DemoGame/GameScript/Hotfix/Generate diff --git a/Assets/DemoGame/GameScript/Hotfix/Config/ConfigManager.cs b/Assets/DemoGame/GameScript/Hotfix/Config/ConfigManager.cs index c034273..ff2ae5b 100644 --- a/Assets/DemoGame/GameScript/Hotfix/Config/ConfigManager.cs +++ b/Assets/DemoGame/GameScript/Hotfix/Config/ConfigManager.cs @@ -14,8 +14,7 @@ namespace ZC { base.OnInit(); string gameConfDir = ""; // 替换为gen.bat中outputDataDir指向的目录 -// string root = AssetConst.Assets_DemoGame_GameRes_Config_JSON_tbplayer_json; -// ResourcesLocalComponent.Instance.LoadAssetSync($""); + tables = new cfg.Tables(this.JX); var item = tables.TbItem.Get(10001); UnityEngine.Debug.Log($"tb id : {item.Id}, name: {item.Name}, desc: {item.Desc}"); diff --git a/Luban/gen.bat b/Luban/gen.bat index 00b56da..0367d6f 100644 --- a/Luban/gen.bat +++ b/Luban/gen.bat @@ -1,11 +1,11 @@ @echo off -set WORKSPACE=.. -set LUBAN_DLL=.\Tools\Luban\Luban.dll -set CONF_ROOT=. -set OUTPUT_CODE_DIR_ROOT=../Assets/DemoGame/GameScript/Hotfix/Generate -set OUTPUT_DATA_DIR_ROOT=../Assets/DemoGame/GameRes/Config +set WORKSPACE=D:\ZXL\UnityProject\Framework_YooAsset_HybridCLR +set LUBAN_DLL=%WORKSPACE%\Luban\Tools\Luban\Luban.dll +set CONF_ROOT=%WORKSPACE%\Luban +set OUTPUT_CODE_DIR_ROOT=%WORKSPACE%/Assets/DemoGame/GameScript/Hotfix/Generate +set OUTPUT_DATA_DIR_ROOT=%WORKSPACE%/Assets/DemoGame/GameRes/Config dotnet %LUBAN_DLL% ^ -t client ^