mirror of
https://github.com/kwsch/NHSE.git
synced 2026-05-14 06:19:53 -05:00
Originally ported from https://github.com/Martin005/SMO_Translation_Helper , via https://github.com/IcySon55/3DLandMSBTeditor Add some tests to ensure functions
20 lines
411 B
C#
20 lines
411 B
C#
using System.Text;
|
|
|
|
namespace NHSE.Parsing
|
|
{
|
|
public class MSBTTextString : IMSBTEntry
|
|
{
|
|
public byte[] Value { get; set; }
|
|
public uint Index { get; set; }
|
|
|
|
public override string ToString()
|
|
{
|
|
return (Index + 1).ToString();
|
|
}
|
|
|
|
public string ToString(Encoding encoding)
|
|
{
|
|
return encoding.GetString(Value);
|
|
}
|
|
}
|
|
} |