Files
GaCy-GO/tools/damage_core_methods.lua
T

17 lines
832 B
Lua
Raw Normal View History

do
local s=_G.__gacDamageCoreMethods1 or {phase=1,index=0};_G.__gacDamageCoreMethods1=s
if s.phase<=2 then
local function log(v)CS.UnityEngine.Debug.Log('[GAC_DAMAGE_CORE] '..tostring(v))end
local ok,err=pcall(function()
local flags=CS.System.Enum.ToObject(typeof(CS.System.Reflection.BindingFlags),60)
local ts={typeof(CS.RPG.GameCore.PVEGameCore),typeof(CS.RPG.GameCore.GameWorld)}
local ms=ts[s.phase]:GetMethods(flags)
for i=s.index,math.min(s.index+23,ms.Length-1)do
local str=tostring(ms[i])
if str:find('Statistic')or str:find('Stt')or str:find('Component')or str:find('PVE')then log('METHOD '..s.phase..' '..str)end
end
s.index=s.index+24;if s.index>=ms.Length then s.phase=s.phase+1;s.index=0 end
end)
if not ok then log('ERROR '..tostring(err));s.phase=s.phase+1;s.index=0 end
end
end