pre cw with probe and a bunch script to read game behavior

This commit is contained in:
CAtlas0784 committed 2026-10-21 20:40:13 +07:00
1 parent 5120219ae2
commit da8a32f60d
310 files changed
+219693 -872

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
-- 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