mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 11:15:33 +00:00
27 lines
No EOL
612 B
C#
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}";
|
|
}
|
|
} |