Files
GaCy-GO/tools/peak_stat_offsets.lua
T

14 lines
583 B
Lua

do
if not _G.__gacPeakStatOffsets1 then
_G.__gacPeakStatOffsets1=true
local function log(v)CS.UnityEngine.Debug.Log('[GAC_PEAK_STAT_OFFSET] '..tostring(v))end
local ok,err=pcall(function()
for _,name in ipairs({'totalBattleRounds','challengeTurnCount','challengeTurnLeft','totalBattleTurns'})do
local good,v=pcall(function()return CS.System.Runtime.InteropServices.Marshal.OffsetOf(typeof(CS.RPG.GameCore.PVEGameStatistics),name):ToInt64()end)
log(name..' '..tostring(good)..' '..tostring(v))
end
end)
if not ok then log('ERROR '..tostring(err))end
end
end