20 lines
952 B
Lua
20 lines
952 B
Lua
-- Named constructors and one known method token; no instances are created.
|
|
do
|
|
if not _G.__gacCwConfigConstructor1 then
|
|
_G.__gacCwConfigConstructor1=true
|
|
local function log(v)CS.UnityEngine.Debug.Log('[GAC_CW_CONFIG_CTOR] '..tostring(v))end
|
|
local flags=CS.System.Enum.ToObject(typeof(CS.System.Reflection.BindingFlags),60)
|
|
local names={'GridFightRoleConfig','GridFightStageRoute','GridFightStageNode','GridFightPlayer'}
|
|
for _,name in ipairs(names)do
|
|
local t=typeof(CS.RPG.Client[name])
|
|
local constructors=t:GetConstructors(flags)
|
|
for i=0,constructors.Length-1 do log('CTOR '..name..' '..tostring(constructors[i])..' TOKEN '..constructors[i].MetadataToken)end
|
|
end
|
|
local ok,value=pcall(function()
|
|
local token=101276529 -- Previously captured GridFightModule.GetSeason token.
|
|
return typeof(CS.RPG.Client.GridFightModule).Module:ResolveMethod(token)
|
|
end)
|
|
log('RESOLVE_KNOWN '..tostring(ok)..' '..tostring(value))
|
|
end
|
|
end
|