Small immutable data holder used in the Editor namespace. It represents a connection between architecture rooms and buildings, exposing read-only lists of opened rooms and owner buildings plus a Host building reference.
using System;
using System.Collections.Generic;
using System.Linq;
using Sandbox;
namespace Sunless.Architecture;
public sealed class ArchRoomConnection
{
public IReadOnlyList<ArchRoom> Opened { get; init; } = Array.Empty<ArchRoom>();
public IReadOnlyList<ArchBuilding> Owners { get; init; } = Array.Empty<ArchBuilding>();
public ArchBuilding Host { get; init; }
}