mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
配置表数据转为List结构
配置表数据转为List结构
This commit is contained in:
15
Assets/TEngine/Config~/gen_client_cfg_list.bat
Normal file
15
Assets/TEngine/Config~/gen_client_cfg_list.bat
Normal file
@@ -0,0 +1,15 @@
|
||||
@SET EXCEL_FOLDER=xls
|
||||
@SET JSON_FOLDER=..\..\TResources\Config
|
||||
@SET EXE= Tools\excel2json\excel2json.exe
|
||||
@SET CsharpPath=..\..\ConfigStruct
|
||||
|
||||
@ECHO Del old Config...
|
||||
del %JSON_FOLDER% /S /Q
|
||||
del %CsharpPath% /S /Q
|
||||
|
||||
@ECHO Converting excel files in folder %EXCEL_FOLDER% ...
|
||||
for /f "delims=" %%i in ('dir /b /a-d /s %EXCEL_FOLDER%\*.xlsx') do (
|
||||
@echo processing %%~nxi
|
||||
@CALL %EXE% --excel %EXCEL_FOLDER%\%%~nxi --json %JSON_FOLDER%\%%~ni.json --p %CsharpPath%\%%~ni.cs --header 3 --cell_json true --a --exclude_prefix #
|
||||
)
|
||||
pause
|
Reference in New Issue
Block a user