mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-23 12:33:02 +00:00
26 lines
680 B
C#
26 lines
680 B
C#
|
using System;
|
|||
|
using System.IO;
|
|||
|
|
|||
|
namespace SanAndreasUnity.Importing.RenderWareStream
|
|||
|
{
|
|||
|
[SectionType(26)]
|
|||
|
public class GeometryList : SectionData
|
|||
|
{
|
|||
|
public readonly UInt32 GeometryCount;
|
|||
|
public readonly Geometry[] Geometry;
|
|||
|
|
|||
|
public GeometryList(SectionHeader header, Stream stream)
|
|||
|
: base(header, stream)
|
|||
|
{
|
|||
|
var data = ReadSection<Data>();
|
|||
|
|
|||
|
GeometryCount = BitConverter.ToUInt32(data.Value, 0);
|
|||
|
Geometry = new Geometry[GeometryCount];
|
|||
|
|
|||
|
for (var i = 0; i < GeometryCount; ++i)
|
|||
|
{
|
|||
|
Geometry[i] = ReadSection<Geometry>();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|