ace/Source/ACE.DatLoader/Entity/FontCharDesc.cs
2018-11-28 23:52:14 -05:00

28 lines
828 B
C#

using System.IO;
namespace ACE.DatLoader.Entity
{
public class FontCharDesc : IUnpackable
{
public ushort Unicode;
public ushort OffsetX;
public ushort OffsetY;
public byte Width;
public byte Height;
public byte HorizontalOffsetBefore;
public byte HorizontalOffsetAfter;
public byte VerticalOffsetBefore;
public void Unpack(BinaryReader reader)
{
Unicode = reader.ReadUInt16();
OffsetX = reader.ReadUInt16();
OffsetY = reader.ReadUInt16();
Width = reader.ReadByte();
Height = reader.ReadByte();
HorizontalOffsetBefore = reader.ReadByte();
HorizontalOffsetAfter = reader.ReadByte();
VerticalOffsetBefore = reader.ReadByte();
}
}
}