cirnogodot/Scripts/Controllers/RoomConnection.cs
2025-04-16 18:18:52 +02:00

27 lines
No EOL
612 B
C#

using Godot;
namespace Cirno.Scripts.Controllers;
public class RoomConnection
{
public Vector2I From;
public Vector2I To;
public bool IsLocked;
public bool IsSecret;
public Door FromDoor { get; set; }
public Door ToDoor { get; set; }
public RoomConnection(Vector2I from, Vector2I to, bool isLocked = false, bool isSecret = false)
{
From = from;
To = to;
IsLocked = isLocked;
IsSecret = isSecret;
}
public override string ToString()
{
return $"From {From} to {To}, IsLocked: {IsLocked}, IsSecret: {IsSecret}";
}
}