Laxley Grandfather Clock puzzle artwork done.

This commit is contained in:
2026-03-28 18:53:38 +00:00
parent 69306a141b
commit 83e9a35d2f
152 changed files with 12822 additions and 194 deletions

View File

@@ -1,7 +1,22 @@
using System;
using System.Reflection;
using BriarQueen.Data.Attributes;
namespace BriarQueen.Framework.Extensions
{
public class EnumExtensions
public static class EnumExtensions
{
public static string GetDisplayName(this Enum value)
{
var type = value.GetType();
var field = type.GetField(value.ToString());
if (field == null)
return value.ToString();
var attribute = field.GetCustomAttribute<DisplayNameAttribute>();
return attribute != null ? attribute.Name : value.ToString();
}
}
}