Пример #1
0
            public static OutOfRange /*!*/ Factory(RubyClass /*!*/ self, object arg1, object arg2, object arg3)
            {
                OutOfRange result = new OutOfRange(GetMessage(arg2, arg3));

                // RubyExceptionData.InitializeException(result, message);
                return(result);
            }
Пример #2
0
 public Boolean IsWIFI()
 {
     using (OutOfRange wirelessOutOfRange = new OutOfRange())
     {
         wirelessOutOfRange.Automatic = false;
         return wirelessOutOfRange.IsAssociated();
     }
 }
Пример #3
0
 public Boolean IsWIFI()
 {
     using (OutOfRange wirelessOutOfRange = new OutOfRange())
     {
         wirelessOutOfRange.Automatic = false;
         return(wirelessOutOfRange.IsAssociated());
     }
 }
Пример #4
0
            public static void Save(IValueSink sink, OutOfRange value)
            {
                sink.EnterSequence();
                Value <float> .Save(sink, value.ExceedingValue);

                Value <StatusFlags> .Save(sink, value.StatusFlags);

                Value <float> .Save(sink, value.Deadband);

                Value <float> .Save(sink, value.ExceededLimit);

                sink.LeaveSequence();
            }
Пример #5
0
            public static void Save(IValueSink sink, OutOfRange value)
            {
                sink.EnterSequence();
                Value <uint> .Save(sink, value.TimeDelay);

                Value <float> .Save(sink, value.LowLimit);

                Value <float> .Save(sink, value.HighLimit);

                Value <float> .Save(sink, value.Deadband);

                sink.LeaveSequence();
            }
    public override bool Update()
    {
        GameObject goA = (GameObject)A.Value;
        GameObject goB = (GameObject)B.Value;

        if (goA == null)
        {
            EB.Debug.LogError("SequenceCondition_Distance: A is null");
            return(false);
        }

        if (goB == null)
        {
            EB.Debug.LogError("SequenceCondition_Distance: B is null");
            return(false);
        }

        var difference = goA.transform.position - goB.transform.position;

        if (OnlyXZ)
        {
            difference.y = 0;
        }

        float distance = difference.magnitude;

        if (distance <= Distance)
        {
            InRange.Invoke();
        }
        else
        {
            OutOfRange.Invoke();
        }
        return(false);
    }
Пример #7
0
 public OutOfRangeWrapper(OutOfRange item)
 {
     this.Item = item;
 }
Пример #8
0
 public static void Save(IValueSink sink, OutOfRange value)
 {
     sink.EnterSequence();
     Value<float>.Save(sink, value.ExceedingValue);
     Value<StatusFlags>.Save(sink, value.StatusFlags);
     Value<float>.Save(sink, value.Deadband);
     Value<float>.Save(sink, value.ExceededLimit);
     sink.LeaveSequence();
 }
Пример #9
0
 /// <summary>
 /// Devices the departed.
 /// </summary>
 /// <param name="sender">The sender.</param>
 private void DeviceDeparted(ProximityDevice sender)
 {
     OutOfRange.Invoke <INfcDevice>(this, this);
 }
Пример #10
0
 public static OutOfRange/*!*/ Factory(RubyClass/*!*/ self, object arg1, object arg2, object arg3) {
     OutOfRange result = new OutOfRange(GetMessage(arg2, arg3));
     // RubyExceptionData.InitializeException(result, message);
     return result;
 }
Пример #11
0
 public OutOfRangeWrapper(OutOfRange item)
 {
     this.Item = item;
 }
Пример #12
0
 public static void Save(IValueSink sink, OutOfRange value)
 {
     sink.EnterSequence();
     Value<uint>.Save(sink, value.TimeDelay);
     Value<float>.Save(sink, value.LowLimit);
     Value<float>.Save(sink, value.HighLimit);
     Value<float>.Save(sink, value.Deadband);
     sink.LeaveSequence();
 }
 internal void RaiseOutOfRange()
 {
     OutOfRange?.Invoke(this, new WiimoteRangeEventArgs(this, false));
 }
Пример #14
0
 private static void RaiseOutOfRange(Wiimote wiimote)
 {
     Debug.WriteLine($"{wiimote} Out of Range");
     OutOfRange?.Invoke(null, new WiimoteRangeEventArgs(wiimote, false));
     wiimote.RaiseOutOfRange();
 }