19 lines
682 B
Lua
19 lines
682 B
Lua
do
|
|
if not _G.__gacPeakConstantSchema1 then
|
|
_G.__gacPeakConstantSchema1=true
|
|
local function log(v)CS.UnityEngine.Debug.Log('[GAC_PEAK_CONST_SCHEMA] '..tostring(v))end
|
|
local ok,err=pcall(function()
|
|
for _,name in ipairs({'ConstValueCommonExcelTable','ConstValueClientExcelTable'})do
|
|
local rows=CS.RPG.GameCore[name].dataDict
|
|
local it=rows:GetEnumerator();log('TABLE '..name..' '..rows.Count)
|
|
if it:MoveNext()then
|
|
local p=it.Current
|
|
log('KEY '..CS.Newtonsoft.Json.JsonConvert.SerializeObject(p.Key))
|
|
log('ROW '..CS.Newtonsoft.Json.JsonConvert.SerializeObject(p.Value))
|
|
end
|
|
end
|
|
end)
|
|
if not ok then log('ERROR '..tostring(err))end
|
|
end
|
|
end
|