generate simple room
This commit is contained in:
18
Assets/Escape Room Engine/Engine/Scripts/SpaceSize.cs
Normal file
18
Assets/Escape Room Engine/Engine/Scripts/SpaceSize.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
namespace Escape_Room_Engine.Engine.Scripts
|
||||
{
|
||||
public readonly struct SpaceSize
|
||||
{
|
||||
internal SpaceSize(int width, int height)
|
||||
{
|
||||
Width = width;
|
||||
Height = height;
|
||||
}
|
||||
|
||||
// TODO: intersections and unions of rectangles
|
||||
|
||||
public int Width { get; }
|
||||
public int Height { get; }
|
||||
|
||||
public override string ToString() => $"({Width}, {Height})";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user