pre cw with probe and a bunch script to read game behavior

This commit is contained in:
CAtlas0784 committed 2026-10-21 20:40:13 +07:00
1 parent 5120219ae2
commit da8a32f60d
310 files changed
+219693 -872

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
-- Existing handbook wrapper metadata only, one inheritance level per heartbeat.
do
local s=_G.__gacCwCampSchema1 or {};_G.__gacCwCampSchema1=s
if s.done then return end
local log=function(v)CS.UnityEngine.Debug.Log('[GAC_CW_CAMP_SCHEMA] '..tostring(v))end
local ok,err=pcall(function()
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
if not s.initialized then
local rows=CS.RPG.Client.GlobalVars.s_ModuleManager.GridFightModule:GetAllMonsterCampData()
if not rows or rows.Count==0 then return end
log('COUNT '..rows.Count);s.type=rows[0]:GetType();s.depth=0;s.initialized=true
end
local t=s.type;if not t or s.depth>=4 then s.done=true;log('END');return end
log('TYPE '..t.FullName)
local fs=t:GetFields(flags);for i=0,math.min(fs.Length-1,47)do log('FIELD '..tostring(fs[i]))end
local ps=t:GetProperties(flags);for i=0,math.min(ps.Length-1,47)do log('PROPERTY '..tostring(ps[i]))end
s.type=t.BaseType;s.depth=s.depth+1
end)
if not ok then log('ERROR '..tostring(err));s.done=true end
end