Files
GaCy-GO/tools/gacha_reddot_metadata.lua
T
2026-10-28 18:54:43 +07:00

26 lines
1.1 KiB
Lua

-- Targeted, read-only metadata for the one failing consumer. Stage only while
-- needed; this does not enumerate assembly types or alter any game state.
do
if _G.__gac_reddot_metadata_done then return end
_G.__gac_reddot_metadata_done=true
local log=function(s) CS.UnityEngine.Debug.Log('[GAC_REDDOT_META] '..tostring(s)) end
local ok,err=pcall(function()
local t=typeof(CS.RPG.Client.GachaInvitationSatisfyRedDotFilter)
local flags=CS.System.Enum.ToObject(typeof(CS.System.Reflection.BindingFlags),60)
if not t then error('consumer type unavailable through xLua') end
log('TYPE '..t.FullName..' BASE '..tostring(t.BaseType and t.BaseType.FullName))
local f=t:GetFields(flags)
for i=0,math.min(f.Length-1,31) do
local x=f[i]
log('FIELD '..x.Name..' '..tostring(x.FieldType.FullName)..' DECLARED '..tostring(x.DeclaringType.FullName))
end
local m=t:GetMethods(flags)
for i=0,math.min(m.Length-1,47) do
local x=m[i]
if x.DeclaringType==t then log('METHOD '..tostring(x)) end
end
log('END')
end)
if not ok then log('ERROR '..tostring(err)) end
end