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

        try
        {
            RaffleComponentCommon raffleComponentCommon = (RaffleComponentCommon)LuaObject.checkSelf(l);
            int rafflePoolId;
            LuaObject.checkType(l, 2, out rafflePoolId);
            int i = raffleComponentCommon.IsRafflePoolOnActivityTime(rafflePoolId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, i);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }