handle modules larger than 1x1, widen door size to allow walking around it
This commit is contained in:
17
Assets/Engine/Runtime/Utilities/Range.cs
Normal file
17
Assets/Engine/Runtime/Utilities/Range.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
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}}}";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user