pre cw with probe and a bunch script to read game behavior
This commit is contained in:
1 parent
5120219ae2
commit
da8a32f60d
310 files changed
+219693
-872
No files matched your search
@@ -0,0 +1,40 @@
|
||||
-- Two named shop classes plus primitive protobuf getters; metadata only.
|
||||
do
|
||||
local names={'RPG.Client.GridFightShopGood','RPG.Client.GridFightShopRole','POCJDMMANBM','HDEIAANGMDB','BOPHDCKJMMN'}
|
||||
_G.__gacCwShopGoodMeta1=_G.__gacCwShopGoodMeta1 or 1
|
||||
local index=_G.__gacCwShopGoodMeta1
|
||||
if 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
|
||||
_G.__gacCwShopGoodMeta1=index+1
|
||||
local log=function(v)CS.UnityEngine.Debug.Log('[GAC_CW_SHOP_GOOD_META] '..tostring(v))end
|
||||
local good,err=pcall(function()
|
||||
local a=typeof(CS.RPG.Client.GridFightModule).Assembly
|
||||
local t=a:GetType(names[index])
|
||||
if not t then t=typeof(CS[names[index]])end
|
||||
log('TYPE '..names[index])
|
||||
if index<=2 then
|
||||
local fields=t:GetFields(flags)
|
||||
for i=0,math.min(fields.Length-1,47)do log('FIELD '..tostring(fields[i]))end
|
||||
local ctors=t:GetConstructors(flags)
|
||||
for i=0,math.min(ctors.Length-1,15)do log('CTOR '..tostring(ctors[i])..' '..tostring(ctors[i].MethodHandle.Value))end
|
||||
local methods=t:GetMethods(flags)
|
||||
for i=0,math.min(methods.Length-1,63)do
|
||||
local m=methods[i]
|
||||
if m.DeclaringType==t then log('METHOD '..tostring(m)..' '..tostring(m.MethodHandle.Value))end
|
||||
end
|
||||
end
|
||||
local props=t:GetProperties(flags)
|
||||
for i=0,math.min(props.Length-1,47)do
|
||||
local p=props[i]
|
||||
local getter=p:GetGetMethod(true)
|
||||
if getter and not getter.IsStatic and p:GetIndexParameters().Length==0 and (p.PropertyType.IsPrimitive or p.PropertyType.IsEnum)then
|
||||
log('GETTER '..names[index]..' '..p.Name..' '..tostring(getter.MethodHandle.Value)..' '..p.PropertyType.FullName)
|
||||
end
|
||||
end
|
||||
end)
|
||||
if not good then log('ERROR '..tostring(err))end
|
||||
if index==#names then log('END')end
|
||||
end
|
||||
Reference in new issue
Block a user