18 lines
885 B
Lua
18 lines
885 B
Lua
-- One named CW component per heartbeat, metadata only.
|
|||
|
|
do
|
||
|
|
local names={'GridFightDivisionLevelConfig','GridFightDivisionStageConfig','GridFightRoleShop','GridFightStage','GridFightPlayer'}
|
||
|
|
_G.__gacCwComponents=_G.__gacCwComponents or 1
|
||
|
|
local index=_G.__gacCwComponents
|
||
|
|
if index<=#names then
|
||
|
|
_G.__gacCwComponents=index+1
|
||
|
|
local function log(v)CS.UnityEngine.Debug.Log('[GAC_CW_COMPONENT] '..tostring(v))end
|
||
|
|
local ok,err=pcall(function()
|
||
|
|
local flags=CS.System.Enum.ToObject(typeof(CS.System.Reflection.BindingFlags),60)
|
||
|
|
local t=typeof(CS.RPG.Client[names[index]])
|
||
|
|
log('TYPE '..tostring(t))
|
||
|
|
local fs=t:GetFields(flags);for i=0,fs.Length-1 do log('FIELD '..tostring(fs[i]))end
|
||
|
|
local ms=t:GetMethods(flags);for i=0,ms.Length-1 do if ms[i].DeclaringType==t then log('METHOD '..tostring(ms[i]))end end
|
||
|
|
end)
|
||
|
|
if not ok then log('ERROR '..tostring(err))end
|
||
|
|
end
|
||
|
|
end
|