mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-05-07 17:21:16 +08:00
17 lines
514 B
C#
17 lines
514 B
C#
// Copyright (c) 2025-2026 GeWuYou
|
||
// SPDX-License-Identifier: Apache-2.0
|
||
|
||
namespace GFramework.Godot.SourceGenerators.Abstractions.UI;
|
||
|
||
/// <summary>
|
||
/// 标记场景根节点类型,Source Generator 会生成场景行为样板代码。
|
||
/// </summary>
|
||
[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
|
||
public sealed class AutoSceneAttribute(string key) : Attribute
|
||
{
|
||
/// <summary>
|
||
/// 获取场景键。
|
||
/// </summary>
|
||
public string Key { get; } = key;
|
||
}
|