25 lines
1.3 KiB
Lua
25 lines
1.3 KiB
Lua
-- Exact table names inferred from captured *ConfigRow names and the existing
|
|
-- GameCore *ExcelTable naming convention. At most one named type per heartbeat.
|
|
do
|
|
local names={'GridFightSeasonModuleConfigExcelTable','GridFightRoleConfigExcelTable','GridFightStageRouteConfigExcelTable','GridFightPlayerLevelConfigExcelTable'}
|
|
_G.__gacCwConfigTables2=_G.__gacCwConfigTables2 or 1
|
|
local index=_G.__gacCwConfigTables2
|
|
if index<=#names then
|
|
_G.__gacCwConfigTables2=index+1
|
|
local function log(v)CS.UnityEngine.Debug.Log('[GAC_CW_CONFIG_TABLE] '..tostring(v))end
|
|
local flags=CS.System.Enum.ToObject(typeof(CS.System.Reflection.BindingFlags),60)
|
|
local assembly=typeof(CS.RPG.GameCore.GridFightRoleConfigRow).Assembly
|
|
if index==1 then log('ROW_ASSEMBLY '..tostring(assembly));log('MODULE_ASSEMBLY '..tostring(typeof(CS.RPG.Client.GridFightModule).Assembly))end
|
|
local t=assembly:GetType('RPG.GameCore.'..names[index])
|
|
log('TYPE '..names[index]..' '..tostring(t))
|
|
if t then
|
|
local methods=t:GetMethods(flags)
|
|
for i=0,math.min(methods.Length-1,31)do
|
|
if methods[i].DeclaringType==t then log('METHOD '..tostring(methods[i]))end
|
|
end
|
|
local fields=t:GetFields(flags)
|
|
for i=0,math.min(fields.Length-1,31)do log('FIELD '..tostring(fields[i]))end
|
|
end
|
|
end
|
|
end
|