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,17 @@
|
||||
-- Exact inventory consumers, one type per heartbeat; metadata only.
|
||||
do local function capture()
|
||||
local s=_G.__gacCwInventoryConsumers2 or {index=1};_G.__gacCwInventoryConsumers2=s
|
||||
local names={'GridFightOrbServerData','GridFightConsumableInfo','GridFightForgeItemData'}
|
||||
if s.index>#names then return end
|
||||
local flags=CS.System.Enum.ToObject(typeof(CS.System.Reflection.BindingFlags),60)
|
||||
local manager=CS.RPG.Client.GlobalVars.s_GamePhaseManager
|
||||
local phase=manager and typeof(CS.RPG.Client.GamePhaseManager):GetField('_CurrentPhase',flags):GetValue(manager)
|
||||
if not phase or typeof(CS.RPG.Client.BattleGamePhase):IsInstanceOfType(phase)then return end
|
||||
local name=names[s.index];s.index=s.index+1
|
||||
local t=typeof(CS.RPG.Client.GridFightModule).Assembly:GetType('RPG.Client.'..name)
|
||||
local log=function(x)CS.UnityEngine.Debug.Log('[GAC_CW_INVENTORY_CONSUMERS] '..tostring(x))end
|
||||
if not t then log('MISSING '..name);return end;log('TYPE '..t.FullName)
|
||||
local fs=t:GetFields(flags);for i=0,math.min(fs.Length-1,95)do log('FIELD '..fs[i].Name..' '..fs[i].FieldType.FullName)end
|
||||
local ms=t:GetMethods(flags);for i=0,math.min(ms.Length-1,159)do local m=ms[i];if m.DeclaringType==t and (m.Name:find('Sync')or m.Name:find('UpdateInfo'))then log('METHOD '..tostring(m)..' HANDLE '..tostring(m.MethodHandle.Value))end end
|
||||
if s.index>#names then log('END')end
|
||||
end;local ok,e=pcall(capture);if not ok then _G.__gacCwInventoryConsumers2={index=99};CS.UnityEngine.Debug.Log('[GAC_CW_INVENTORY_CONSUMERS] ERROR '..tostring(e))end end
|
||||
Reference in new issue
Block a user