This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2023-11-05 03:26:09 +08:00
parent ec4d6a15d7
commit 0014eff5e0
4034 changed files with 623229 additions and 41 deletions

View File

@@ -0,0 +1,16 @@
set WORKSPACE=..\..
set LUBAN_DLL=%WORKSPACE%\Tools\Luban\Luban.dll
set CONF_ROOT=%WORKSPACE%\DataTables
dotnet %LUBAN_DLL% ^
-t all ^
-c python-json ^
-d json ^
--conf %CONF_ROOT%\luban.conf ^
-x outputCodeDir=gen ^
-x outputDataDir=..\GenerateDatas\json ^
-x pathValidator.rootDir=%WORKSPACE%\Projects\Csharp_Unity_bin ^
-x l10n.textProviderFile=*@%WORKSPACE%\DataTables\Datas\l10n\texts.json
pause

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,16 @@
import json
import sys
import os
sys.path.append(os.path.abspath('gen'))
import schema
def loader(f):
return json.load(open('../GenerateDatas/json/' + f + ".json", 'r', encoding="utf-8"))
tables = schema.cfg_Tables(loader)
print(tables)
r = tables.TbFullTypes.getDataList()[0].__dict__
print(r)