32 lines
1.1 KiB
C#
32 lines
1.1 KiB
C#
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("能力名标签本地化 Key(UI 表,如 ABL_DASH)。")]
|
||
public string labelKey;
|
||
[Tooltip("能力说明本地化 Key(可空)。")]
|
||
public string descKey;
|
||
[Tooltip("能力图标(可空)。")]
|
||
public Sprite icon;
|
||
}
|
||
|
||
[SerializeField] private Item[] _items;
|
||
|
||
public Item[] Items => _items;
|
||
}
|
||
}
|