A small data class used in the editor for walkway endpoints. It stores a 2D point, references to the containing room and building, and exposes computed Height and Floor properties that default to the Room's BaseHeight and Floor when Room is present.
using System;
using System.Collections.Generic;
using System.Linq;
using Sandbox;
namespace Sunless.Architecture;
public sealed class ArchWalkwayEndpoint
{
public Vector2 Point { get; init; }
public ArchRoom Room { get; init; }
public ArchBuilding Building { get; init; }
public float Height => Room?.BaseHeight ?? 0f;
public int Floor => Room?.Floor ?? 0;
}