795018e243
In case there are any future libraries written for Roblox in C#, I want to avoid running into any namespace collisions. Its best to keep everything pertaining to this project nested in its own unique namespace.
25 lines
491 B
C#
25 lines
491 B
C#
using System;
|
|
|
|
namespace RobloxFiles.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);
|
|
}
|
|
}
|
|
}
|