23 lines
1.5 KiB
Lua
23 lines
1.5 KiB
Lua
do
|
|
local s=_G.__gacWindowCapture2 or {i=1};_G.__gacWindowCapture2=s
|
|
local ids={100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,900,1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015,1016,1017,1018,1019,1020,1021,1022,1023,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021,2022,2023,2024,2025,2026,2027,2028,3001,3002,3003,3004,3005,3006,3007,3008,3009,3010,3011,3012,3013,3014,3015,3016,3017,3018,3019,3020,3021,3022,3023}
|
|
if s.i>#ids then return end
|
|
local m=CS.RPG.Client.GlobalVars.s_ModuleManager.ChallengeModule
|
|
for n=1,8 do
|
|
if s.i>#ids then return end
|
|
local id=ids[s.i];s.i=s.i+1
|
|
local ok,e=pcall(function()
|
|
local g=m:GetChallengeGroupData(id)
|
|
if g and g.IsScheduleChallenge then
|
|
CS.UnityEngine.Debug.Log('[GAC_ENDGAME_WINDOW] '..id..' '..g.BeginTimeStamp..' '..g.EndTimeStamp)
|
|
if id==ids[#ids] then
|
|
local flags=CS.System.Enum.ToObject(typeof(CS.System.Reflection.BindingFlags),60)
|
|
local props=g:GetType():GetProperties(flags)
|
|
for i=0,props.Length-1 do local p=props[i];if p.PropertyType==typeof(CS.System.Boolean) and p:GetIndexParameters().Length==0 then local ok,v=pcall(function()return p:GetValue(g,nil)end);CS.UnityEngine.Debug.Log('[GAC_GROUP_BOOL] '..p.Name..' '..tostring(ok)..' '..tostring(v))end end
|
|
end
|
|
end
|
|
end)
|
|
if not ok then CS.UnityEngine.Debug.Log('[GAC_ENDGAME_WINDOW] ERROR '..id..' '..tostring(e));s.i=#ids+1;return end
|
|
end
|
|
end
|