Update GaCy-GO
This commit is contained in:
1 parent
da8a32f60d
commit
0cbe460e49
345 files changed
+98202
-77559
No files matched your search
@@ -0,0 +1,26 @@
|
||||
-- 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
|
||||
Reference in new issue
Block a user