Files
GaCy-GO/tools/cw_bonfire_schema.lua
T
2026-10-28 18:54:43 +07:00

20 lines
1.2 KiB
Lua

-- Metadata only: inspect the named CW module in batches; no gameplay calls.
do local function capture()
local s=_G.__gacCwBonfireSchema1 or {index=0};_G.__gacCwBonfireSchema1=s
if s.done then return end
local log=function(x)CS.UnityEngine.Debug.Log('[GAC_CW_BONFIRE_SCHEMA] '..tostring(x))end
local flags=CS.System.Enum.ToObject(typeof(CS.System.Reflection.BindingFlags),60)
local t=typeof(CS.RPG.Client.GridFightModule)
if s.index==0 then
local session=CS.RPG.Client.GlobalVars.s_ModuleManager.GridFightModule.CurGameSession
if session then local fs=session:GetType():GetFields(flags);for i=0,math.min(fs.Length-1,63)do log('SESSION_FIELD '..tostring(fs[i]))end end
end
local ms=t:GetMethods(flags)
for i=s.index,math.min(s.index+31,ms.Length-1,2047)do
local m=ms[i];local name=m.Name:lower()
if m.DeclaringType==t and (name:find('bonfire')or name:find('healhp')or name:find('teabreak'))then log('METHOD '..tostring(m)..' HANDLE '..tostring(m.MethodHandle.Value))end
end
s.index=s.index+32
if s.index>=ms.Length or s.index>=2048 then s.done=true;log('END inspected='..math.min(ms.Length,2048)..' total='..ms.Length)end
end;local ok,e=pcall(capture);if not ok then CS.UnityEngine.Debug.Log('[GAC_CW_BONFIRE_SCHEMA] ERROR '..tostring(e))end end