16 lines
1.3 KiB
Lua
16 lines
1.3 KiB
Lua
-- Metadata only for the observed internal wave parameter, its config field,
|
|||
|
|
-- and the exact conversion helper seen in the Client stack. One type/HB.
|
||
|
|
do local function capture()
|
||
|
|
local s=_G.__gacCwWaveConversion1 or 1;if s>3 then return end;_G.__gacCwWaveConversion1=s+1
|
||
|
|
local log=function(x)CS.UnityEngine.Debug.Log('[GAC_CW_WAVE_CONVERT] '..tostring(x))end
|
||
|
|
local ok,err=pcall(function()
|
||
|
|
local flags=CS.System.Enum.ToObject(typeof(CS.System.Reflection.BindingFlags),60)
|
||
|
|
local p=typeof(CS.RPG.GameCore.BattleInstance):GetMethod('GetCurWaveParam',flags).ReturnType
|
||
|
|
local types={p,p:GetField('FGNHFJHBPIM',flags).FieldType,p.Assembly:GetType('FKOEECADKFF')}
|
||
|
|
local t=types[s];if not t then log('MISSING '..s);return end;log('TYPE '..t.FullName)
|
||
|
|
local fs=t:GetFields(flags);for i=0,math.min(fs.Length-1,47)do log('FIELD '..tostring(fs[i]))end
|
||
|
|
local cs=t:GetConstructors(flags);for i=0,math.min(cs.Length-1,7)do log('CTOR '..tostring(cs[i])..' HANDLE '..tostring(cs[i].MethodHandle.Value))end
|
||
|
|
local ms=t:GetMethods(flags);for i=0,math.min(ms.Length-1,47)do local m=ms[i];if m.DeclaringType==t then log('METHOD '..tostring(m)..' HANDLE '..tostring(m.MethodHandle.Value))end end
|
||
|
|
end)
|
||
|
|
if not ok then log('ERROR '..tostring(err))end;if s==3 then log('END')end
|
||
|
|
end;capture()end
|