Editor UI adapter for pillar tools. It implements IArchPillarForms and forwards calls to static ArchPillarUi methods to render kind selection, build options, size controls, and handle retyping of pillar parts.
namespace Sunless.Architecture;
public sealed class ArchPillarForms : IArchPillarForms
{
public void Kinds( ToolSidebarWidget panel, IReadOnlyList<ArchPillarType> offered, string chosen, Action<ArchPillarType> adopt )
{
ArchPillarUi.Kinds( panel, offered, chosen, adopt );
}
public void Build( ToolSidebarWidget panel, ArchPillarPart pillar, ArchPillarType type, Action refresh, Action changed )
{
ArchPillarUi.Build( panel, pillar, type, refresh, changed );
}
public void Sizes( ToolSidebarWidget panel, ArchPillarPart pillar, ArchPillarType type, Action refresh, Action changed )
{
ArchPillarUi.Sizes( panel, pillar, type, refresh, changed );
}
public ArchPillarPart Retype( ArchTool tool, ArchPillarPart pillar, ArchPillarType type )
{
return ArchPillarUi.Retype( tool, pillar, type );
}
}