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,22 @@
|
||||
-- Read loaded CW Lua modules only. Do not require modules or invoke UI code.
|
||||
do
|
||||
if not _G.__gacCwLoadedLua1 then
|
||||
_G.__gacCwLoadedLua1=true
|
||||
local function log(v)CS.UnityEngine.Debug.Log('[GAC_CW_LOADED_LUA] '..tostring(v))end
|
||||
local n=0
|
||||
for name,value in pairs(package.loaded)do
|
||||
if tostring(name):lower():find('gridfight')then
|
||||
log('MODULE '..tostring(name)..' TYPE '..type(value))
|
||||
if tostring(name):lower():find('entrance') and type(value)=='table' then
|
||||
local count=0
|
||||
for k,v in pairs(value)do
|
||||
if type(v)=='function' then local info=debug.getinfo(v,'S');log('FUNCTION '..tostring(k)..' '..tostring(info and info.source))end
|
||||
count=count+1;if count>=64 then break end
|
||||
end
|
||||
end
|
||||
n=n+1;if n>=64 then break end
|
||||
end
|
||||
end
|
||||
log('END '..n)
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user