17 lines
352 B
C#
17 lines
352 B
C#
namespace EscapeRoomEngine.Engine.Runtime.Utilities
|
|
{
|
|
public struct Range
|
|
{
|
|
public int min, max;
|
|
|
|
public int Length => max - min;
|
|
|
|
public Range(int min, int max)
|
|
{
|
|
this.min = min;
|
|
this.max = max;
|
|
}
|
|
|
|
public override string ToString() => $"{{{min}, ..., {max}}}";
|
|
}
|
|
} |