mirror of
https://github.com/ACEmulator/ACE
synced 2026-08-17 12:26:06 -04:00
* Fixed some dat reading related errors. * Adjusted AnimationPartChange and added second implementation of Unpack * Small fix to highres/language dat reading to handle errors cleaner * Updated highres/language dat loading logic, removed exceptions entirely
22 lines
601 B
C#
22 lines
601 B
C#
using System.IO;
|
|
|
|
namespace ACE.DatLoader.Entity
|
|
{
|
|
public class AnimationPartChange : IUnpackable
|
|
{
|
|
public byte PartIndex { get; private set; }
|
|
public uint PartID { get; private set; }
|
|
|
|
public void Unpack(BinaryReader reader)
|
|
{
|
|
PartIndex = reader.ReadByte();
|
|
PartID = reader.ReadAsDataIDOfKnownType(0x01000000);
|
|
}
|
|
|
|
public void Unpack(BinaryReader reader, ushort partIndex)
|
|
{
|
|
PartIndex = (byte)(partIndex & 255);
|
|
PartID = reader.ReadAsDataIDOfKnownType(0x01000000);
|
|
}
|
|
}
|
|
}
|