16 lines
866 B
Lua
16 lines
866 B
Lua
do
|
|||
|
|
if not _G.__gacPeakTargetCache1 then
|
||
|
|
_G.__gacPeakTargetCache1=true
|
||
|
|
local function log(v)CS.UnityEngine.Debug.Log('[GAC_PEAK_TARGET_CACHE] '..tostring(v))end
|
||
|
|
local ok,err=pcall(function()
|
||
|
|
local s=CS.RPG.Client.GlobalVars.s_ModuleManager.BattleModule.LastBattleStatistic
|
||
|
|
for _,n in ipairs({'battleRaidTargetList','battleScoringList','battleChallengeScoreList'})do log(n..' '..CS.Newtonsoft.Json.JsonConvert.SerializeObject(s[n]))end
|
||
|
|
local flags=CS.System.Enum.ToObject(typeof(CS.System.Reflection.BindingFlags),60)
|
||
|
|
local methods=CS.RPG.Client.GlobalVars.s_ModuleManager.BattleModule:GetType():GetMethods(flags)
|
||
|
|
for i=0,methods.Length-1 do
|
||
|
|
local m=methods[i];if m.Name:find('Result')or m.Name:find('Statistic')then log('METHOD '..tostring(m)..' '..m.MetadataToken)end
|
||
|
|
end
|
||
|
|
end)
|
||
|
|
if not ok then log('ERROR '..tostring(err))end
|
||
|
|
end
|
||
|
|
end
|