Files
GaCy-GO/tools/cw_loader_methods_probe.lua
T

20 lines
894 B
Lua
Raw Normal View History

-- Inspect only the known GameCoreConfigLoader, bounded method metadata batches.
-- This never invokes a loader, including any level-graph loader.
do
_G.__gacCwLoaderMethods1=_G.__gacCwLoaderMethods1 or {index=0}
local state=_G.__gacCwLoaderMethods1
if not state.done then
local function log(v)CS.UnityEngine.Debug.Log('[GAC_CW_LOADER_METHOD] '..tostring(v))end
local flags=CS.System.Enum.ToObject(typeof(CS.System.Reflection.BindingFlags),60)
if not state.methods then
state.methods=typeof(CS.RPG.GameCore.GameCoreConfigLoader):GetMethods(flags)
log('BEGIN '..state.methods.Length)
end
for i=state.index,math.min(state.index+63,state.methods.Length-1)do
local m=state.methods[i]
if m.Name:lower():find('gridfight')then log('METHOD '..tostring(m))end
end
state.index=state.index+64
if state.index>=state.methods.Length then state.done=true;log('END')end
end
end