Update GaCy-GO
This commit is contained in:
1 parent
da8a32f60d
commit
0cbe460e49
345 files changed
+98202
-77559
No files matched your search
@@ -0,0 +1,30 @@
|
||||
-- Detached template metadata only. Does not register a banner or mutate UI.
|
||||
do
|
||||
local function capture()
|
||||
local s=_G.__gacGachaAdapterMeta1 or {index=1}
|
||||
_G.__gacGachaAdapterMeta1=s
|
||||
if s.index>4 then return end
|
||||
local m=CS.RPG.Client.GlobalVars.s_ModuleManager.GachaModule
|
||||
if not m then return end
|
||||
local flags=CS.System.Enum.ToObject(typeof(CS.System.Reflection.BindingFlags),60)
|
||||
local log=function(v)CS.UnityEngine.Debug.Log('[GAC_GACHA_ADAPTER_META] '..tostring(v))end
|
||||
local pools=m:GetSortedGachaPoolDatas()
|
||||
local template=nil
|
||||
for i=0,pools.Count-1 do if pools[i]:GetType().FullName=='RPG.Client.StandardGachaPoolData' then template=pools[i];break end end
|
||||
if not template then return end
|
||||
local values={m,template,template.SingleDrawData,template.Row}
|
||||
local value=values[s.index];s.index=s.index+1
|
||||
if not value then log('MISSING_VALUE');return end
|
||||
local t=value:GetType();log('TYPE '..t.FullName)
|
||||
local fs=t:GetFields(flags)
|
||||
for i=0,math.min(fs.Length-1,63) do
|
||||
local f=fs[i]
|
||||
if f.DeclaringType==t then
|
||||
log('FIELD '..f.Name..' '..f.FieldType.FullName)
|
||||
end
|
||||
end
|
||||
if s.index==5 then log('END')end
|
||||
end
|
||||
local ok,e=pcall(capture)
|
||||
if not ok then _G.__gacGachaAdapterMeta1={index=99};CS.UnityEngine.Debug.Log('[GAC_GACHA_ADAPTER_META] ERROR '..tostring(e))end
|
||||
end
|
||||
Reference in new issue
Block a user