Files
GaCy-GO/tools/cw_text_loader_metadata_probe.lua
T

24 lines
965 B
Lua

-- Inspect text/config loader metadata on one known type in bounded batches.
-- No loader or callback is invoked.
do
_G.__gacCwTextLoader1=_G.__gacCwTextLoader1 or {index=0}
local s=_G.__gacCwTextLoader1
if not s.done then
local log=function(v)CS.UnityEngine.Debug.Log('[GAC_CW_TEXT_LOADER] '..tostring(v))end
local flags=CS.System.Enum.ToObject(typeof(CS.System.Reflection.BindingFlags),60)
if not s.methods then
local t=typeof(CS.RPG.GameCore.GameCoreConfigLoader)
s.methods=t:GetMethods(flags)
local fields=t:GetFields(flags)
for i=0,math.min(fields.Length-1,31)do log('FIELD '..tostring(fields[i]))end
end
for i=s.index,math.min(s.index+63,s.methods.Length-1)do
local m=s.methods[i]
local name=m.Name:lower()
if m.ReturnType==typeof(CS.System.String) or name:find('text') or name:find('json') then log('METHOD '..tostring(m))end
end
s.index=s.index+64
if s.index>=s.methods.Length then s.done=true;log('END')end
end
end