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

22 lines
976 B
Lua

-- Named module fields only; no mission updates or scene calls.
do
local function capture()
local s=_G.__gacMissionConfigAccess1 or {offset=0}
_G.__gacMissionConfigAccess1=s
if s.done then return end
local log=function(v)CS.UnityEngine.Debug.Log('[GAC_MISSION_CONFIG_ACCESS] '..tostring(v))end
local flags=CS.System.Enum.ToObject(typeof(CS.System.Reflection.BindingFlags),60)
if not s.members then
s.t=typeof(CS.RPG.Client.GridFightModule).Assembly:GetType('RPG.Client.MissionModule')
s.members=s.t:GetFields(flags)
end
for n=1,16 do
if s.offset>=s.members.Length then s.done=true;log('END');return end
local f=s.members[s.offset];s.offset=s.offset+1
if f.DeclaringType==s.t then log('FIELD '..f.Name..' '..f.FieldType.FullName..' STATIC '..tostring(f.IsStatic))end
end
end
local ok,e=pcall(capture)
if not ok then _G.__gacMissionConfigAccess1={done=true};CS.UnityEngine.Debug.Log('[GAC_MISSION_CONFIG_ACCESS] ERROR '..tostring(e))end
end