public static int IsAbleQueryRankingListInfo(IntPtr l)
    {
        int result;

        try
        {
            GlobalRankingListComponent globalRankingListComponent = (GlobalRankingListComponent)LuaObject.checkSelf(l);
            RankingListType            rankingListType;
            LuaObject.checkEnum <RankingListType>(l, 2, out rankingListType);
            int  i;
            bool b = globalRankingListComponent.IsAbleQueryRankingListInfo(rankingListType, out i);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, b);
            LuaObject.pushValue(l, i);
            result = 3;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }