Files
zeling_v2/Assets/Scripts/Dialogue/DialogueDataSO.cs
2026-05-08 11:04:00 +08:00

24 lines
843 B
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;
namespace BaseGames.Dialogue
{
/// <summary>
/// 对话数据 ScriptableObject存根
/// Phase 3 Dialogue 模块实现时填充完整字段对话行、Speaker、选项分支等
/// 此处仅声明类型,供 DialogueEventChannelSO 引用。
/// </summary>
[CreateAssetMenu(menuName = "Dialogue/DialogueData")]
public class DialogueDataSO : ScriptableObject
{
[Tooltip("对话资产的唯一标识符,对应存档中 NPC 对话进度记录。")]
public string dialogueId;
[Tooltip("对话参与者名称(用于 HUD 说话人名牌)。")]
public string speakerName;
[TextArea(3, 8)]
[Tooltip("Phase 3 前的占位文本;正式内容在 DialogueLineSO[] ")]
public string placeholderText;
}
}