2019-01-26 00:39:37 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
2019-02-01 17:19:20 +00:00
|
|
|
|
namespace RobloxFiles.DataTypes
|
2019-01-26 00:39:37 +00:00
|
|
|
|
{
|
2019-02-01 18:40:39 +00:00
|
|
|
|
public class NumberRange
|
2019-01-26 00:39:37 +00:00
|
|
|
|
{
|
|
|
|
|
public readonly float Min;
|
|
|
|
|
public readonly float Max;
|
|
|
|
|
|
2019-02-01 18:40:39 +00:00
|
|
|
|
public NumberRange(float min = 0, float max = 0)
|
2019-01-26 00:39:37 +00:00
|
|
|
|
{
|
|
|
|
|
if (max - min < 0)
|
|
|
|
|
throw new Exception("NumberRange: invalid range");
|
|
|
|
|
|
|
|
|
|
Min = min;
|
|
|
|
|
Max = max;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string ToString()
|
|
|
|
|
{
|
|
|
|
|
return string.Join(" ", Min, Max);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|