SanAndreasUnity/Assets/Scripts/Importing/RenderWareStream/Data.cs

17 lines
393 B
C#
Raw Normal View History

2020-05-31 17:07:22 +00:00
using System.IO;
namespace SanAndreasUnity.Importing.RenderWareStream
{
[SectionType(1)]
public class Data : SectionData
{
public readonly byte[] Value;
public Data(SectionHeader header, Stream stream)
: base(header, stream)
{
Value = new byte[header.Size];
stream.Read(Value, 0, (int)header.Size);
}
}
}