Editor UI sheet for an 'approach' stair part. It specifies the payload type and builds the inspector UI by delegating to ArchStairUi.Approach when the selected item is an ArchApproachPart.
namespace Sunless.Architecture;
public sealed class ArchApproachSheet : IArchSheet
{
public Type Payload => typeof( ArchApproachPart );
public void Build( ToolSidebarWidget panel, ArchTool tool, ArchSelection picked, Action refresh, Action changed )
{
if ( picked.Item is ArchApproachPart approach )
{
ArchStairUi.Approach( panel, approach, tool.Grid, refresh, changed );
}
}
}