protected override void Deserialize(string textValue) { float[] args; if (TrySplit(textValue, 2, out args)) { Value = new DaggerfallWorkshop.Utility.Tuple <float, float>(args[0], args[1]); } }
protected override bool IsValueEqual(DaggerfallWorkshop.Utility.Tuple <float, float> value) { return(Value.First == value.First && Value.Second == value.Second); }
/// <summary> /// Get values between min and max using interpolation. /// </summary> /// <param name="range">Limits of the interpolation.</param> /// <param name="precision">Number of values to generate.</param> /// <param name="type">Interpolation method defined in <see cref="InterpolationType"/>.</param> public Interpolation(DaggerfallWorkshop.Utility.Tuple <float, float> range, int precision, int type = 0) { this.Range = range; this.Precision = precision; this.Type = type; }