Files
zeling_v2/Assets/_Game/Scripts/UI/AbilityMetaSO.cs
2026-06-08 11:26:17 +08:00

32 lines
1.1 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using UnityEngine;
using BaseGames.Player;
namespace BaseGames.UI
{
/// <summary>
/// 能力总览数据表(策划编辑):每个 <see cref="AbilityType"/> → 名称/说明/图标。
/// <see cref="DataDrivenAbilityPanel"/> 据此列出全部能力 + 已解锁/未解锁态。
/// 改本表即增删/重排能力项、改标签/图标,零代码。
/// </summary>
[CreateAssetMenu(menuName = "BaseGames/UI/Ability Meta", fileName = "UI_AbilityMeta")]
public class AbilityMetaSO : ScriptableObject
{
[System.Serializable]
public struct Item
{
[Tooltip("此条目对应的能力位。")]
public AbilityType type;
[Tooltip("能力名标签本地化 KeyUI 表,如 ABL_DASH。")]
public string labelKey;
[Tooltip("能力说明本地化 Key可空。")]
public string descKey;
[Tooltip("能力图标(可空)。")]
public Sprite icon;
}
[SerializeField] private Item[] _items;
public Item[] Items => _items;
}
}