mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-23 12:33:02 +00:00
18 lines
No EOL
450 B
C#
18 lines
No EOL
450 B
C#
using SanAndreasUnity.Utilities;
|
|
using System.IO;
|
|
using System.Text;
|
|
|
|
namespace SanAndreasUnity.Importing.RenderWareStream
|
|
{
|
|
[SectionType(2)]
|
|
public class String : SectionData
|
|
{
|
|
public readonly string Value;
|
|
|
|
public String(SectionHeader header, Stream stream)
|
|
: base(header, stream)
|
|
{
|
|
Value = Encoding.UTF8.GetString(stream.ReadBytes((int)header.Size)).TrimNullChars();
|
|
}
|
|
}
|
|
} |