27 lines
1.2 KiB
Lua
27 lines
1.2 KiB
Lua
-- 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
|