From 5a47442b0af91c14c7d7a3dcc7ab883cb6a13efe Mon Sep 17 00:00:00 2001 From: zhangxl <1062808664@qq.com> Date: Fri, 19 Jul 2024 16:19:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=85=8D=E7=BD=AE=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=BF=BD=E7=95=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 ++ .../DemoGame/GameScript/Hotfix/Config/ConfigManager.cs | 3 +-- Luban/gen.bat | 10 +++++----- 3 files changed, 8 insertions(+), 7 deletions(-) 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 ^