-- Read-only native handbook role configs, four rows per heartbeat. do _G.__gacCwRolesExport2=_G.__gacCwRolesExport2 or {index=0} local state=_G.__gacCwRolesExport2 if not state.done then local function log(v)CS.UnityEngine.Debug.Log('[GAC_CW_ROLES] '..tostring(v))end local ok,err=pcall(function() local module=CS.RPG.Client.GlobalVars.s_ModuleManager.GridFightModule if not state.rows then state.rows=module:GetHandBookAllRoleConfig() log('BEGIN count='..state.rows.Count) end for i=state.index,math.min(state.index+3,state.rows.Count-1)do local r=state.rows[i] local flags=CS.System.Enum.ToObject(typeof(CS.System.Reflection.BindingFlags),60) local config=r.RoleConfig local row=config:GetType():GetField('_Row',flags):GetValue(config) log('ROW {"Config":'..CS.Newtonsoft.Json.JsonConvert.SerializeObject(row)..',"Price":'..config.Price..',"MaxStar":'..config.MaxStar..',"DefaultStar":'..r.Star..',"DefaultSellPrice":'..r.SellPrice..'}') end state.index=state.index+4 if state.index>=state.rows.Count then state.done=true;log('END')end end) if not ok then log('ERROR '..tostring(err));state.done=true end end end