30 lines
2.0 KiB
Lua
30 lines
2.0 KiB
Lua
-- Exact named types, two per heartbeat. No assembly type enumeration or loaders.
|
|
do local function capture()
|
|
local s=_G.__gacPreviewMetadata1 or {index=1};_G.__gacPreviewMetadata1=s
|
|
local names={
|
|
{'RPG.Client.GachaModule','client'}, {'RPG.Client.ParkourModule','client'},
|
|
{'RPG.GameCore.GachaBasicInfoRow','core'}, {'RPG.GameCore.GachaConfigRow','core'},
|
|
{'RPG.GameCore.GachaBasicInfoConfigRow','core'}, {'RPG.GameCore.GachaBannerConfigRow','core'},
|
|
{'RPG.GameCore.ParkourLevelConfigRow','core'}, {'RPG.GameCore.ActivityPanelRow','core'},
|
|
{'RPG.GameCore.ActivityConfigRow','core'}, {'RPG.GameCore.ActivityModuleRow','core'},
|
|
{'RPG.Client.ActivityModule','client'}, {'RPG.Client.StellaJumpModule','client'}
|
|
}
|
|
if s.index>#names then return end
|
|
local flags=CS.System.Enum.ToObject(typeof(CS.System.Reflection.BindingFlags),60)
|
|
local manager=CS.RPG.Client.GlobalVars.s_GamePhaseManager
|
|
local phase=manager and typeof(CS.RPG.Client.GamePhaseManager):GetField('_CurrentPhase',flags):GetValue(manager)
|
|
if not phase or typeof(CS.RPG.Client.BattleGamePhase):IsInstanceOfType(phase)then return end
|
|
local log=function(x)CS.UnityEngine.Debug.Log('[GAC_PREVIEW_METADATA] '..tostring(x))end
|
|
for _=1,2 do
|
|
if s.index>#names then log('END');return end
|
|
local entry=names[s.index];s.index=s.index+1
|
|
local asm=entry[2]=='core' and typeof(CS.RPG.GameCore.GridFightRoleConfigRow).Assembly or typeof(CS.RPG.Client.GridFightModule).Assembly
|
|
local t=asm:GetType(entry[1]);log('TYPE '..entry[1]..' '..tostring(t))
|
|
if t then
|
|
local fs=t:GetFields(flags);for i=0,math.min(fs.Length-1,95)do log('FIELD '..fs[i].Name..' '..fs[i].FieldType.FullName)end
|
|
local ms=t:GetMethods(flags);for i=0,math.min(ms.Length-1,255)do local m=ms[i];if m.DeclaringType==t then log('METHOD '..tostring(m)..' HANDLE '..tostring(m.MethodHandle.Value))end end
|
|
end
|
|
end
|
|
if s.index>#names then log('END')end
|
|
end;local ok,e=pcall(capture);if not ok then _G.__gacPreviewMetadata1={index=99};CS.UnityEngine.Debug.Log('[GAC_PREVIEW_METADATA] ERROR '..tostring(e))end end
|