28 lines
2.0 KiB
Lua
28 lines
2.0 KiB
Lua
-- Research only. Named metadata and three paths found in current GachaMainPage
|
|
-- bytecode; no scene loads, no table-wide assembly scans, no UI/gameplay calls.
|
|
do local function capture()
|
|
local s=_G.__gacGlmBetaMetadata1 or {index=1};_G.__gacGlmBetaMetadata1=s
|
|
local names={'RPG.Client.TextID','RPG.Client.ActivityData','RPG.GameCore.GachaGroupDataRow','RPG.Client.BaseGachaGroupData'}
|
|
if s.index>#names+1 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_GLM_BETA_META] '..tostring(x))end
|
|
if s.index==#names+1 then
|
|
for _,path in ipairs({'UI/Drawcard/GachaPanel/MultiAvatarGacha.prefab','UI/Drawcard/CollaborationGacha/CollaborationGacha.prefab','UI/Drawcard/CollaborationGacha0440/CollaborationGacha0440.prefab'})do
|
|
local ok,value=pcall(function()return CS.RPG.Client.GlobalVars.s_AssetMgr:Exists(path)end)
|
|
log('ASSET '..path..' '..tostring(ok)..' '..tostring(value))
|
|
end
|
|
else
|
|
local name=names[s.index]
|
|
local asm=name:find('GameCore') and typeof(CS.RPG.GameCore.GridFightRoleConfigRow).Assembly or typeof(CS.RPG.Client.GridFightModule).Assembly
|
|
local t=asm:GetType(name);log('TYPE '..name..' '..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,127)do local m=ms[i];if m.DeclaringType==t then log('METHOD '..tostring(m)..' HANDLE '..tostring(m.MethodHandle.Value))end end
|
|
end
|
|
end
|
|
s.index=s.index+1;if s.index>#names+1 then log('END')end
|
|
end;local ok,e=pcall(capture);if not ok then _G.__gacGlmBetaMetadata1={index=99};CS.UnityEngine.Debug.Log('[GAC_GLM_BETA_META] ERROR '..tostring(e))end end
|