Files
GaCy-GO/tools/peak_target_table_export.lua
T

16 lines
692 B
Lua
Raw Normal View History

-- Read only the named native table, 32 rows per heartbeat.
do
local s=_G.__gacPeakTargetExport1 or {};_G.__gacPeakTargetExport1=s
if s.done then return end
local function log(v)CS.UnityEngine.Debug.Log('[GAC_PEAK_TABLE] '..tostring(v))end
local ok,err=pcall(function()
if not s.it then s.it=CS.RPG.GameCore.BattleTargetConfigExcelTable.dataDict:GetEnumerator()end
local wanted=__TARGET_IDS__
for i=1,32 do
if not s.it:MoveNext()then s.done=true;log('END');return end
local row=s.it.Current.Value
if wanted[tonumber(row.ID)]then log('ROW '..CS.Newtonsoft.Json.JsonConvert.SerializeObject(row))end
end
end)
if not ok then s.done=true;log('ERROR '..tostring(err))end
end