Extension methods for ArchPlan that provide convenience lookups for ArchBeamPart and its host ArchRoom. It defines FindBeam to find a beam part by id and RoomStanding to get the room hosting that beam.
namespace Sunless.Architecture;
public static class ArchPlanBeams
{
public static ArchBeamPart FindBeam( this ArchPlan plan, int id, ArchKinds table = null ) =>
plan.Find<ArchBeamPart>( id, table );
public static ArchRoom RoomStanding( this ArchPlan plan, ArchBeamPart beam, ArchKinds table = null ) =>
plan.HostOf<ArchRoom>( beam, table );
}