ace/Source/ACE.DatLoader/Entity/CVertexArray.cs
gmriggs 772344276d
Adding physics entity cache system (#936)
* Adding physics entity cache system

* Fixing CullMode

* Cleanup

* Removing unused fields in PhysicsPart for server
2018-08-10 19:56:25 -04:00

27 lines
732 B
C#

using System;
using System.Collections.Generic;
using System.IO;
namespace ACE.DatLoader.Entity
{
/// <summary>
/// A list of indexed vertices, and their associated type
/// </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();
var numVertices = reader.ReadUInt32();
if (VertexType == 1)
Vertices.Unpack(reader, numVertices);
else
throw new NotImplementedException();
}
}
}