Files
GaCy-GO/tools/cw_config_probe.lua

24 lines
1.0 KiB
Lua

-- Read-only named CW table discovery, one type per heartbeat.
do
local names={'GridFightSeasonModuleConfigRow','GridFightDivisionConfigRow','GridFightDivisionLevelConfigRow','GridFightTutorialStageConfigRow','GridFightRoleConfigRow','GridFightShopLevelConfigRow','GridFightConstValueRow'}
_G.__gacCwConfigIndex=_G.__gacCwConfigIndex or 1
local index=_G.__gacCwConfigIndex
if index<=#names then
_G.__gacCwConfigIndex=index+1
local function log(v)CS.UnityEngine.Debug.Log('[GAC_CW_CONFIG] '..tostring(v))end
local ok,err=pcall(function()
local flags=CS.System.Enum.ToObject(typeof(CS.System.Reflection.BindingFlags),60)
local t=typeof(CS.RPG.GameCore[names[index]])
log('TYPE '..tostring(t))
local fields=t:GetFields(flags)
for i=0,fields.Length-1 do log('FIELD '..tostring(fields[i]))end
local methods=t:GetMethods(flags)
for i=0,methods.Length-1 do
local m=methods[i]
if m.DeclaringType==t then log('METHOD '..tostring(m)) end
end
end)
if not ok then log('ERROR '..names[index]..' '..tostring(err))end
end
end