20 lines
517 B
C#
20 lines
517 B
C#
namespace Escape_Room_Engine.Engine.Scripts
|
|
{
|
|
public readonly struct Dimensions
|
|
{
|
|
internal Dimensions(float width, float length, float x, float y)
|
|
{
|
|
Width = width;
|
|
Length = length;
|
|
X = x;
|
|
Y = y;
|
|
}
|
|
|
|
public float Width { get; }
|
|
public float Length { get; }
|
|
public float X { get; }
|
|
public float Y { get; }
|
|
|
|
public override string ToString() => $"({Width}, {Length}) at ({X}, {Y})";
|
|
}
|
|
} |