mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-27 06:20:17 +00:00
18 lines
450 B
C#
18 lines
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();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|