Files
GaCy-GO/tools/cw_preload_provider_metadata.lua

25 lines
1.0 KiB
Lua

-- Metadata only on the exact provider type declared by the CW module field.
-- No preload, graph, HTTP or gameplay method is invoked.
do
if not _G.__gacCwPreloadMeta2 then
_G.__gacCwPreloadMeta2=true
local log=function(v)CS.UnityEngine.Debug.Log('[GAC_CW_PRELOAD_META] '..tostring(v))end
local flags=CS.System.Enum.ToObject(typeof(CS.System.Reflection.BindingFlags),60)
local field=typeof(CS.RPG.Client.GridFightModule):GetField('_SessionPreloadProvider',flags)
local module=CS.RPG.Client.GlobalVars.s_ModuleManager.GridFightModule
local object=field:GetValue(module)
if not object then log('OBJECT nil');return end
local t=object:GetType()
log('TYPE '..t.FullName)
local fs=t:GetFields(flags)
for i=0,math.min(fs.Length-1,31)do log('FIELD '..tostring(fs[i]))end
local ms=t:GetMethods(flags)
for i=0,math.min(ms.Length-1,63)do
if ms[i].DeclaringType==t then log('METHOD '..tostring(ms[i]))end
end
local ps=t:GetProperties(flags)
for i=0,math.min(ps.Length-1,31)do log('PROPERTY '..tostring(ps[i]))end
log('END')
end
end