Initial commit.
There's a lot of code at play here, so I haven't tested it yet. A good chunk of the components are available though.
This commit is contained in:
24
DataTypes/NumberRange.cs
Normal file
24
DataTypes/NumberRange.cs
Normal file
@ -0,0 +1,24 @@
|
||||
using System;
|
||||
|
||||
namespace Roblox.DataTypes
|
||||
{
|
||||
public struct NumberRange
|
||||
{
|
||||
public readonly float Min;
|
||||
public readonly float Max;
|
||||
|
||||
public NumberRange(float min, float max)
|
||||
{
|
||||
if (max - min < 0)
|
||||
throw new Exception("NumberRange: invalid range");
|
||||
|
||||
Min = min;
|
||||
Max = max;
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return string.Join(" ", Min, Max);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user