mirror of
https://github.com/kwsch/NHSE.git
synced 2026-05-21 17:59:47 -05:00
21 lines
535 B
C#
21 lines
535 B
C#
using System.Text;
|
|
|
|
namespace NHSE.Parsing
|
|
{
|
|
public class MSBTLabel
|
|
{
|
|
public uint Length;
|
|
public readonly string Name;
|
|
public MSBTTextString String;
|
|
|
|
public MSBTLabel(string name)
|
|
{
|
|
Name = name;
|
|
String = MSBTTextString.Empty;
|
|
}
|
|
|
|
public uint Index { get; set; }
|
|
public override string ToString() => Length > 0 ? Name : (Index + 1).ToString();
|
|
public string ToString(Encoding encoding) => encoding.GetString(String.Value);
|
|
}
|
|
} |