Editor/Carve/ArchCutDrawer.cs

Editor-side drawer for architectural cuts. Implements IArchDrawer, declares it draws the Cut type and calls ArchCutGen.Build with the drawing canvas, cut parts, palette, kit, and style.

namespace Sunless.Architecture;

// The palette comes in as a host rather than off the unit, because a shaft filed on a road wears the road's.
public sealed class ArchCutDrawer : IArchDrawer
{
	public string Draws => ArchDraws.Cut;

	public void Draw( ArchDrawing drawing )
	{
		ArchCutGen.Build( drawing.Canvas, drawing.Drawn<ArchCutPart>(), drawing.Within<ArchPalette>(),
			drawing.Kit, drawing.Style );
	}
}