2025-04-01 18:26:48 +08:00
|
|
|
using System;
|
|
|
|
|
using System.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using Sirenix.OdinInspector;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace Stary.Evo.TableTextConversion
|
|
|
|
|
{
|
|
|
|
|
public class AudioTableData : ScriptableObject, ITableData
|
|
|
|
|
{
|
|
|
|
|
public string TableName { get; }
|
|
|
|
|
public List<MessageInfo> infos;
|
|
|
|
|
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class MessageInfo
|
|
|
|
|
{
|
|
|
|
|
// 序号
|
|
|
|
|
[GUIColor(0, 1, 0)] public int index;
|
|
|
|
|
// 名称
|
2025-04-21 11:11:02 +08:00
|
|
|
public string auId;
|
2025-04-01 18:26:48 +08:00
|
|
|
// 名称描述
|
2025-04-21 11:11:02 +08:00
|
|
|
public string fileName;
|
|
|
|
|
public AudioType auType;
|
|
|
|
|
public int lineId;
|
|
|
|
|
public float startTime;
|
|
|
|
|
public float endTime;
|
|
|
|
|
public string text;
|
2025-04-01 18:26:48 +08:00
|
|
|
}
|
2025-04-21 11:11:02 +08:00
|
|
|
|
|
|
|
|
public enum AudioType
|
|
|
|
|
{
|
|
|
|
|
Null,
|
|
|
|
|
music,
|
|
|
|
|
effect,
|
|
|
|
|
sound,
|
|
|
|
|
}
|
|
|
|
|
|
2025-04-01 18:26:48 +08:00
|
|
|
}
|
|
|
|
|
}
|