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

27 lines
1.4 KiB
Lua

-- Inactive targeted metadata capture. No mission mutation or factory calls.
do
local function capture()
local s=_G.__gacMissionTableMeta1 or {index=1,offset=0}
_G.__gacMissionTableMeta1=s
local names={'RPG.Client.MissionJsonTable','RPG.GameCore.MissionJsonTable','RPG.Client.MissionModule'}
if s.index>#names then return end
local flags=CS.System.Enum.ToObject(typeof(CS.System.Reflection.BindingFlags),60)
local log=function(v)CS.UnityEngine.Debug.Log('[GAC_MISSION_TABLE_META] '..tostring(v))end
if not s.t then
local asm=s.index==2 and typeof(CS.RPG.GameCore.GridFightRoleConfigRow).Assembly or typeof(CS.RPG.Client.GridFightModule).Assembly
s.t=asm:GetType(names[s.index]);log('TYPE '..names[s.index]..' '..tostring(s.t))
if not s.t then s.index=s.index+1;return end
s.members=s.t:GetMethods(flags);s.offset=0
end
for n=1,20 do
if s.offset>=s.members.Length then s.index=s.index+1;s.t=nil;s.members=nil;s.offset=0;return end
local m=s.members[s.offset];s.offset=s.offset+1
if m.DeclaringType==s.t and (m.Name:find('SubMission') or m.Name:find('Instance') or m.Name:find('MissionInfo') or m.Name:find('Config')) then
log('METHOD '..tostring(m)..' STATIC '..tostring(m.IsStatic))
end
end
end
local ok,e=pcall(capture)
if not ok then _G.__gacMissionTableMeta1={index=99};CS.UnityEngine.Debug.Log('[GAC_MISSION_TABLE_META] ERROR '..tostring(e))end
end