Files
2026-04-06 11:23:05 +07:00

33 lines
1.1 KiB
C#

using System;
using UnityEngine;
namespace BrewMonster.Scripts.Chat.EmotionData
{
/// <summary>
/// Một dòng định nghĩa emotion trong Emotions{N}.txt (port từ AUITEXTAREA_EMOTION).
/// One emotion definition line from Emotions{N}.txt (ported from AUITEXTAREA_EMOTION).
/// </summary>
[Serializable]
public class EmotionEntryData
{
[Tooltip("Chỉ số ô bắt đầu trong lưới cell (nStartPos) — Starting cell index in the atlas grid.")]
public int StartPos;
[Tooltip("Số frame animation (nNumFrames), tối đa 20 như C++.")]
public int NumFrames;
[Tooltip("Tooltip / hint text từ file txt.")]
public string Hint = "";
/// <summary>
/// Thời điểm tick cho từng frame (nFrameTick[i]), độ dài = NumFrames.
/// </summary>
public int[] FrameTicks = Array.Empty<int>();
/// <summary>
/// Sprite đã cắt cho từng frame (gán bởi tool), độ dài = NumFrames khi đã convert.
/// </summary>
public Sprite[] FrameSprites = Array.Empty<Sprite>();
}
}