18 lines
827 B
Lua
18 lines
827 B
Lua
-- Inspect the enum used by a captured CW room condition; no value changes.
|
|
do
|
|
if not _G.__gacCwSavedCondition1 then
|
|
_G.__gacCwSavedCondition1=true
|
|
local function log(v)CS.UnityEngine.Debug.Log('[GAC_CW_SAVED_CONDITION] '..tostring(v))end
|
|
local ok,err=pcall(function()
|
|
local r=CS.RPG.GameCore.GameCoreConfigLoader.LoadRtLevelGroupInfo(__GROUP_PATH__)
|
|
local condition=r.SavedValueCondition.Conditions[0]
|
|
local flags=CS.System.Enum.ToObject(typeof(CS.System.Reflection.BindingFlags),60)
|
|
local t=condition:GetType():GetField('Operation',flags).FieldType
|
|
log('TYPE '..tostring(t))
|
|
local names=CS.System.Enum.GetNames(t)
|
|
for i=0,names.Length-1 do log('ENUM '..names[i]..' '..CS.System.Convert.ToInt32(CS.System.Enum.Parse(t,names[i])))end
|
|
end)
|
|
if not ok then log('ERROR '..tostring(err))end
|
|
end
|
|
end
|