25 lines
1.3 KiB
Lua
25 lines
1.3 KiB
Lua
-- Metadata only, one explicitly named CW configuration type per heartbeat.
|
|||
|
|
do
|
||
|
|
local names={'RPG.Client.GridFightRoleStarConfig','RPG.Client.GridFightMonsterBattleStageData','RPG.Client.GridFightMonsterStageData','RPG.Client.GridFightGamePlayResConfig','RPG.GameCore.GridFightStageNodeTemplateConfigRow','RPG.GameCore.GridFightStageNodeConfigRow'}
|
||
|
|
_G.__gacCwRunConfigSchema1=_G.__gacCwRunConfigSchema1 or 1
|
||
|
|
local index=_G.__gacCwRunConfigSchema1
|
||
|
|
if index<=#names then
|
||
|
|
_G.__gacCwRunConfigSchema1=index+1
|
||
|
|
local log=function(v)CS.UnityEngine.Debug.Log('[GAC_CW_RUN_CONFIG_SCHEMA] '..tostring(v))end
|
||
|
|
local flags=CS.System.Enum.ToObject(typeof(CS.System.Reflection.BindingFlags),60)
|
||
|
|
local assemblies={typeof(CS.RPG.Client.GridFightModule).Assembly,typeof(CS.RPG.GameCore.GridFightRoleConfigRow).Assembly}
|
||
|
|
local t=assemblies[1]:GetType(names[index]) or assemblies[2]:GetType(names[index])
|
||
|
|
log('TYPE '..names[index]..' '..tostring(t))
|
||
|
|
if t then
|
||
|
|
local fs=t:GetFields(flags)
|
||
|
|
for i=0,math.min(fs.Length-1,47)do log('FIELD '..tostring(fs[i]))end
|
||
|
|
local ps=t:GetProperties(flags)
|
||
|
|
for i=0,math.min(ps.Length-1,47)do log('PROPERTY '..tostring(ps[i]))end
|
||
|
|
local ms=t:GetMethods(flags)
|
||
|
|
for i=0,math.min(ms.Length-1,47)do
|
||
|
|
if ms[i].DeclaringType==t then log('METHOD '..tostring(ms[i]))end
|
||
|
|
end
|
||
|
|
end
|
||
|
|
if index==#names then log('END')end
|
||
|
|
end
|
||
|
|
end
|