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,23 @@
|
||||
-- Inspect text/config loader metadata on one known type in bounded batches.
|
||||
-- No loader or callback is invoked.
|
||||
do
|
||||
_G.__gacCwTextLoader1=_G.__gacCwTextLoader1 or {index=0}
|
||||
local s=_G.__gacCwTextLoader1
|
||||
if not s.done then
|
||||
local log=function(v)CS.UnityEngine.Debug.Log('[GAC_CW_TEXT_LOADER] '..tostring(v))end
|
||||
local flags=CS.System.Enum.ToObject(typeof(CS.System.Reflection.BindingFlags),60)
|
||||
if not s.methods then
|
||||
local t=typeof(CS.RPG.GameCore.GameCoreConfigLoader)
|
||||
s.methods=t:GetMethods(flags)
|
||||
local fields=t:GetFields(flags)
|
||||
for i=0,math.min(fields.Length-1,31)do log('FIELD '..tostring(fields[i]))end
|
||||
end
|
||||
for i=s.index,math.min(s.index+63,s.methods.Length-1)do
|
||||
local m=s.methods[i]
|
||||
local name=m.Name:lower()
|
||||
if m.ReturnType==typeof(CS.System.String) or name:find('text') or name:find('json') then log('METHOD '..tostring(m))end
|
||||
end
|
||||
s.index=s.index+64
|
||||
if s.index>=s.methods.Length then s.done=true;log('END')end
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user