示例#1
0
        public static bool TryGetTable(this Table table, string key, out Table result, LogInfo info = default)
        {
            if (table.TryGetDynValue(key, out var dynValue, info))
            {
                return(dynValue.TryGetTable(out result, info));
            }

            result = null;
            return(false);
        }
示例#2
0
        public static bool TryGetLuaAction(this Table table, string key, out ScriptFunctionDelegate result,
                                           LogInfo info = default)
        {
            if (table.TryGetDynValue(key, out var dynValue, info))
            {
                return(dynValue.TryGetLuaAction(out result, info));
            }

            result = null;
            return(false);
        }