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,20 @@
|
||||
-- Inspect only the already loaded FiveDim game config; never load a scene graph.
|
||||
do local function capture()
|
||||
if _G.__gacFiveDimConfig1 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
|
||||
_G.__gacFiveDimConfig1=true
|
||||
local m=CS.RPG.Client.GlobalVars.s_ModuleManager.FiveDimModule
|
||||
local cfg=m:GetType():GetField('_GameConfig',flags):GetValue(m)
|
||||
local log=function(x)CS.UnityEngine.Debug.Log('[GAC_FIVEDIM_CONFIG] '..tostring(x))end
|
||||
if not cfg then log('CONFIG nil');return end
|
||||
log('TYPE '..cfg:GetType().FullName)
|
||||
local fields=cfg:GetType():GetFields(flags)
|
||||
for i=0,math.min(fields.Length-1,95)do
|
||||
local f=fields[i];local value=f:GetValue(cfg)
|
||||
log('FIELD '..f.Name..' '..f.FieldType.FullName..' '..tostring(value))
|
||||
end
|
||||
log('END')
|
||||
end;local ok,e=pcall(capture);if not ok then _G.__gacFiveDimConfig1=true;CS.UnityEngine.Debug.Log('[GAC_FIVEDIM_CONFIG] ERROR '..tostring(e))end end
|
||||
Reference in new issue
Block a user