19 lines
856 B
Lua
19 lines
856 B
Lua
do
|
|
local s=_G.__gacDamageBattleSchema1 or {phase=1,index=0};_G.__gacDamageBattleSchema1=s
|
|
if s.phase<=2 then
|
|
local function log(v)CS.UnityEngine.Debug.Log('[GAC_DAMAGE_BATTLE_INSTANCE] '..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.BattleInstance)
|
|
local list=s.phase==1 and t:GetFields(flags)or t:GetMethods(flags)
|
|
for i=s.index,math.min(s.index+15,list.Length-1)do
|
|
local f=list[i]
|
|
if s.phase==1 then log('FIELD '..f.Name..' '..tostring(f.FieldType))elseif tostring(f):find('Statistic')or tostring(f):find('Stt')then log('METHOD '..tostring(f))end
|
|
end
|
|
s.index=s.index+16;if s.index>=list.Length then s.phase=s.phase+1;s.index=0 end
|
|
end)
|
|
if not ok then log('ERROR '..tostring(err));s.phase=3 end
|
|
end
|
|
end
|
|
|