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}}}";
|
||||
}
|
||||
}
|
||||
3
Assets/Engine/Runtime/Utilities/Range.cs.meta
Normal file
3
Assets/Engine/Runtime/Utilities/Range.cs.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c02bc5b9e6d74d6eaab716d63b53a48f
|
||||
timeCreated: 1669288906
|
||||
Reference in New Issue
Block a user