Editor/Roof/ArchRoofDecks.cs

Editor helper that implements IArchRoofDecks by forwarding Seat and Struck calls to the ArchRoofGen static methods. It maps roof/kit queries and hit tests to the generator implementation.

namespace Sunless.Architecture;

public sealed class ArchRoofDecks : IArchRoofDecks
{
	public float Seat( ArchRoofPart roof, ArchKit kit, Vector2 at ) => ArchRoofGen.Seat( roof, kit, at );

	public bool Struck( ArchPlan plan, int level, ArchKit kit, Ray ray, out Vector3 hit, out ArchRoofPart on )
		=> ArchRoofGen.Struck( plan, level, kit, ray, out hit, out on );
}