-- Read only named constant tables, bounded to 64 rows per heartbeat. do _G.__gacCwConstants=_G.__gacCwConstants or {tableIndex=1} local state=_G.__gacCwConstants local tables={'ConstValueCommonExcelTable','ConstValueClientExcelTable'} if state.tableIndex<=#tables then local function log(v)CS.UnityEngine.Debug.Log('[GAC_CW_CONSTANT] '..tostring(v))end local ok,err=pcall(function() if not state.iterator then state.iterator=CS.RPG.GameCore[tables[state.tableIndex]].dataDict:GetEnumerator()end for i=1,64 do if not state.iterator:MoveNext()then log('END '..tables[state.tableIndex]);state.iterator=nil;state.tableIndex=state.tableIndex+1;return end local row=state.iterator.Current.Value if tostring(row.ConstValueName):lower():find('gridfight') then log('ROW '..tables[state.tableIndex]..' '..CS.Newtonsoft.Json.JsonConvert.SerializeObject(row)) end end end) if not ok then log('ERROR '..tostring(err));state.iterator=nil;state.tableIndex=state.tableIndex+1 end end end