18 lines
438 B
C#
18 lines
438 B
C#
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})";
|
|
}
|
|
} |