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}";
    }
}