19 lines
1.6 KiB
Lua
19 lines
1.6 KiB
Lua
-- Exact FiveDim module and config rows; one type per heartbeat, paused in Battle.
|
|
do local function capture()
|
|
local s=_G.__gacPreviewMini1 or {index=1};_G.__gacPreviewMini1=s
|
|
local names={'RPG.Client.FiveDimModule','RPG.GameCore.FiveDimMiniGameConfigRow','RPG.GameCore.FiveDimMiniGameLevelConfigRow','RPG.GameCore.MiniGameConfigRow','RPG.GameCore.MiniGameLevelConfigRow','RPG.Client.BaseGachaPoolData','RPG.Client.GachaTimeData'}
|
|
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 name=names[s.index];s.index=s.index+1
|
|
local asm=name:find('GameCore') and typeof(CS.RPG.GameCore.GridFightRoleConfigRow).Assembly or typeof(CS.RPG.Client.GridFightModule).Assembly
|
|
local t=asm:GetType(name)
|
|
local log=function(x)CS.UnityEngine.Debug.Log('[GAC_PREVIEW_MINI] '..tostring(x))end
|
|
log('TYPE '..name..' '..tostring(t));if not t then return end
|
|
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
|
|
if s.index>#names then log('END')end
|
|
end;local ok,e=pcall(capture);if not ok then _G.__gacPreviewMini1={index=99};CS.UnityEngine.Debug.Log('[GAC_PREVIEW_MINI] ERROR '..tostring(e))end end
|