ace/Source/ACE.DatLoader/Entity/CVertexArray.cs
Mag-nus bacd751d8a
ACE.DatLoader more IUnpackable work (#610)
* ACE.DatLoader: XpTable updated

* ACE.DatLoader physics and environment using new unpack pattern
2018-01-31 21:09:08 -06:00

27 lines
737 B
C#

using System;
using System.Collections.Generic;
using System.IO;
namespace ACE.DatLoader.Entity
{
/// <summary>
/// This is actually different than just a "VertexArray" class.
/// </summary>
public class CVertexArray : IUnpackable
{
public int VertexType { get; private set; }
public Dictionary<ushort, SWVertex> Vertices { get; } = new Dictionary<ushort, SWVertex>();
public void Unpack(BinaryReader reader)
{
VertexType = reader.ReadInt32();
int numVertices = reader.ReadInt32();
if (VertexType == 1)
Vertices.Unpack(reader, numVertices);
else
throw new NotImplementedException();
}
}
}