Files
GaCy-GO/tools/cw_row_attributes_probe.lua

19 lines
788 B
Lua

-- Named row metadata attributes only; constructors are not executed.
do
local names={'GridFightPlayerLevelConfigRow','GridFightTutorialStageConfigRow'}
_G.__gacCwRowAttributes1=_G.__gacCwRowAttributes1 or 1
local i=_G.__gacCwRowAttributes1
if i<=#names then
_G.__gacCwRowAttributes1=i+1
local log=function(v)CS.UnityEngine.Debug.Log('[GAC_CW_ROW_ATTRIBUTES] '..tostring(v))end
local ok,err=pcall(function()
local t=typeof(CS.RPG.GameCore[names[i]])
log('TYPE '..t.FullName..' BASE '..tostring(t.BaseType)..' DECLARING '..tostring(t.DeclaringType))
local attrs=t:GetCustomAttributesData()
for j=0,math.min(attrs.Count-1,15)do log('ATTRIBUTE '..tostring(attrs[j]))end
end)
if not ok then log('ERROR '..tostring(err))end
if i==#names then log('END')end
end
end