using System.Collections.Generic;
using System.IO;
using System.Numerics;
namespace ACE.DatLoader.Entity
{
///
/// A vertex position, normal, and texture coords
///
public class SWVertex : IUnpackable
{
public Vector3 Origin { get; private set; }
public Vector3 Normal { get; private set; }
public List UVs { get; private set; }
public void Unpack(BinaryReader reader)
{
var numUVs = reader.ReadUInt16();
UVs = new List(numUVs);
Origin = reader.ReadVector3();
Normal = reader.ReadVector3();
UVs.Unpack(reader, numUVs);
}
}
}