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

        try
        {
            GlobalRankingListComponent globalRankingListComponent = (GlobalRankingListComponent)LuaObject.checkSelf(l);
            RankingListType            rankingType;
            LuaObject.checkEnum <RankingListType>(l, 2, out rankingType);
            RankingListInfo rankingListInfoByType = globalRankingListComponent.GetRankingListInfoByType(rankingType);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, rankingListInfoByType);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }