Files
GaCy-GO/tools/cw_active_wave_table_methods.lua
T

26 lines
1.2 KiB
Lua
Raw Normal View History

2026-10-28 18:54:43 +07:00
-- Inspect only the named CW wave/elite configuration tables and their lookup methods.
do
local state=_G.__gacCwActiveWaveTableMethods1 or {done=false};_G.__gacCwActiveWaveTableMethods1=state
if not state.done then
local lines={}
local ok,err=pcall(function()
local flags=CS.System.Enum.ToObject(typeof(CS.System.Reflection.BindingFlags),60)
local assembly=typeof(CS.RPG.GameCore.GridFightRoleConfigRow).Assembly
local names={'StageConfigExcelTable','GridFightFormationWaveExcelTable','GridFightFormationWaveConfigExcelTable','GridFightEliteGroupExcelTable','GridFightEliteGroupConfigExcelTable'}
for _,name in ipairs(names)do
local t=assembly:GetType('RPG.GameCore.'..name)
lines[#lines+1]='TYPE '..name..' '..tostring(t)
if t then
local methods=t:GetMethods(flags)
for i=0,math.min(methods.Length-1,95)do
local m=methods[i]
if m.DeclaringType==t and (m.Name=='GetData'or m.Name=='GetAllData'or m.Name=='GetDataRow'or m.Name=='GetAllRows')then lines[#lines+1]='METHOD '..name..' '..tostring(m)end
end
end
end
end)
if not ok then lines[#lines+1]='ERROR '..tostring(err)end
CS.UnityEngine.Debug.Log('[GAC_CW_WAVE_SCHEMA]\n'..table.concat(lines,'\n'))
state.done=true
end
end