16 lines
677 B
Lua
16 lines
677 B
Lua
-- One named enum, bounded plain metadata. No scene/gameplay changes.
|
|||
|
|
do
|
||
|
|
if not _G.__gacCwNodeEnum1 then
|
||
|
|
_G.__gacCwNodeEnum1=true
|
||
|
|
local log=function(v)CS.UnityEngine.Debug.Log('[GAC_CW_NODE_ENUM] '..tostring(v))end
|
||
|
|
local good,err=pcall(function()
|
||
|
|
local t=typeof(CS.RPG.GameCore.GridFightNodeType)
|
||
|
|
local names=CS.System.Enum.GetNames(t)
|
||
|
|
if names.Length>128 then error('Enum exceeds capture bound')end
|
||
|
|
log('BEGIN count='..names.Length)
|
||
|
|
for i=0,names.Length-1 do log('ROW {"name":"'..names[i]..'","value":'..CS.System.Convert.ToInt32(CS.System.Enum.Parse(t,names[i]))..'}')end
|
||
|
|
log('END')
|
||
|
|
end)
|
||
|
|
if not good then log('ERROR '..tostring(err))end
|
||
|
|
end
|
||
|
|
end
|