An editor-side expected report provider for stair architecture pieces. It implements IArchExpectedReport and returns a stair-specific report when the payload is an ArchStairPart and a room target is present.
namespace Sunless.Architecture;
public sealed class ArchStairExpectedReport : IArchExpectedReport
{
public ArchKind Kind => ArchKind.Stair;
public object Describe( object payload, ArchTarget target, ArchTool tool )
{
return payload is ArchStairPart stair && target.Room is not null
? ArchStairReport.StairReport( stair, target.Room, target.Building, tool.Kit )
: null;
}
}