19 lines
1.0 KiB
Lua
19 lines
1.0 KiB
Lua
-- Read the current preparation page's Lua class metadata only.
|
|
do local function capture()
|
|
if _G.__gacCwPrepLuaMethods1 then return end;_G.__gacCwPrepLuaMethods1=true
|
|
local page=CS.RPG.Client.GlobalVars.s_UIManager:GetPageByName('GridFightPreparationPage')
|
|
local obj=page and page.LuaTable;if type(obj)~='table'then return end
|
|
local visited={}
|
|
local function inspect(t,depth)
|
|
if type(t)~='table'or visited[t]or depth>4 then return end;visited[t]=true
|
|
local count=0
|
|
for k,v in pairs(t)do
|
|
count=count+1;if count>192 then break end
|
|
if type(v)=='function'then local info=debug.getinfo(v,'S');CS.UnityEngine.Debug.Log('[GAC_CW_PREP_LUA] FUNCTION '..tostring(k)..' '..tostring(info and info.source)..' lines='..tostring(info and info.linedefined))
|
|
elseif (k=='__index'or k=='super'or k=='class')and type(v)=='table'then inspect(v,depth+1)end
|
|
end
|
|
inspect(getmetatable(t),depth+1)
|
|
end
|
|
inspect(obj,0)
|
|
end;local ok,e=pcall(capture);if not ok then CS.UnityEngine.Debug.Log('[GAC_CW_PREP_LUA] ERROR '..tostring(e))end end
|