Files
GaCy-GO/tools/damage_live_source_probe.lua
T

16 lines
840 B
Lua

-- Bounded metadata for the two observed holders of the active battle core.
do
local s=_G.__gacDamageLiveSource1 or {phase=1,index=0};_G.__gacDamageLiveSource1=s
if s.phase<=3 then
local function log(v)CS.UnityEngine.Debug.Log('[GAC_DAMAGE_SOURCE] '..tostring(v))end
local ok,err=pcall(function()
local flags=CS.System.Enum.ToObject(typeof(CS.System.Reflection.BindingFlags),60)
local ts={typeof(CS.IBOLNDGHCBB),typeof(CS.RPG.Client.BattleLevelDirector),typeof(CS.RPG.Client.BattleGamePhaseInitParams)}
local fs=ts[s.phase]:GetFields(flags)
for i=s.index,math.min(s.index+15,fs.Length-1)do log('FIELD '..s.phase..' '..fs[i].Name..' '..tostring(fs[i].FieldType))end
s.index=s.index+16;if s.index>=fs.Length then s.index=0;s.phase=s.phase+1 end
end)
if not ok then log('ERROR '..tostring(err));s.phase=4 end
end
end