improve room generation
This commit is contained in:
20
Assets/Escape Room Engine/Engine/Scripts/Dimensions.cs
Normal file
20
Assets/Escape Room Engine/Engine/Scripts/Dimensions.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
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})";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user