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); }
public Boolean IsWIFI() { using (OutOfRange wirelessOutOfRange = new OutOfRange()) { wirelessOutOfRange.Automatic = false; return wirelessOutOfRange.IsAssociated(); } }
public Boolean IsWIFI() { using (OutOfRange wirelessOutOfRange = new OutOfRange()) { wirelessOutOfRange.Automatic = false; return(wirelessOutOfRange.IsAssociated()); } }
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(); }
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); }
public OutOfRangeWrapper(OutOfRange item) { this.Item = item; }
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(); }
/// <summary> /// Devices the departed. /// </summary> /// <param name="sender">The sender.</param> private void DeviceDeparted(ProximityDevice sender) { OutOfRange.Invoke <INfcDevice>(this, this); }
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; }
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)); }
private static void RaiseOutOfRange(Wiimote wiimote) { Debug.WriteLine($"{wiimote} Out of Range"); OutOfRange?.Invoke(null, new WiimoteRangeEventArgs(wiimote, false)); wiimote.RaiseOutOfRange(); }