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

16 lines
1.0 KiB
Lua

-- Resolve TextID through the known ActivityPanelRow field's assembly identity.
do if not _G.__gacGlmBetaTextID1 then
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 phase and not typeof(CS.RPG.Client.BattleGamePhase):IsInstanceOfType(phase)then
_G.__gacGlmBetaTextID1=true
local log=function(x)CS.UnityEngine.Debug.Log('[GAC_GLM_TEXTID_META] '..tostring(x))end
local t=typeof(CS.RPG.GameCore.ActivityPanelRow):GetField('TabName',flags).FieldType
log('TYPE '..t.FullName..' ASSEMBLY '..t.Assembly.FullName)
local fs=t:GetFields(flags);for i=0,math.min(fs.Length-1,47)do log('FIELD '..fs[i].Name..' '..fs[i].FieldType.FullName)end
local ms=t:GetMethods(flags);for i=0,math.min(ms.Length-1,95)do local m=ms[i];if m.DeclaringType==t then log('METHOD '..tostring(m)..' HANDLE '..tostring(m.MethodHandle.Value))end end
log('END')
end
end end