An editor-only drawer for architecture walls. It implements IArchDrawer and calls ArchWallGen.Build to generate wall geometry on the provided drawing canvas using drawn walls, room/building context, kit/style, door/glass parts, and connection services.
namespace Sunless.Architecture;
// A deck's walls are drawn against the roof's own connections, so the builder hands those in and they win over
// the plan-wide resolve a room's walls take.
public sealed class ArchWallDrawer : IArchDrawer
{
public string Draws => ArchDraws.Wall;
public void Draw( ArchDrawing drawing )
{
ArchWallGen.Build( drawing.Canvas, drawing.Drawn<ArchWall>(), drawing.Within<ArchRoom>(),
drawing.Within<ArchBuilding>(), drawing.Kit, drawing.Style, drawing.Part.Doors, drawing.Part.Glass,
drawing.Within<ArchConnectionService>() ?? drawing.Services.Connections, drawing.Plan );
}
}