namespace GFramework.Godot.SourceGenerators.Abstractions.UI;
///
/// 标记 UI 页面类型,Source Generator 会生成页面行为样板代码。
///
[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
public sealed class AutoUiPageAttribute(string key, string layerName) : Attribute
{
///
/// 获取 UI 键。
///
public string Key { get; } = key;
///
/// 获取 UiLayer 枚举成员名称。
///
public string LayerName { get; } = layerName;
}