Editor helper class that provides label text and a fallback icon key for StairUnder enum values. It maps StairUnder.Open/Filled/Cupboard to human-readable strings and icon keys using C# switch expressions.
namespace Sunless.Architecture;
public static class ArchStairLabels
{
public static string Describe( StairUnder value ) => value switch
{
StairUnder.Open => "Open below",
StairUnder.Filled => "Filled below",
StairUnder.Cupboard => "Cupboard below",
_ => value.ToString()
};
public static string Fallback( StairUnder value ) => value switch
{
StairUnder.Open => "crop_free",
StairUnder.Filled => "change_history",
_ => "door_front"
};
}