ace/Source/ACE.DatLoader/Entity/AnimData.cs
gmriggs b215a34ce7
Improving DatLoader for third-party apps (#1092)
* Improving DatLoader for third-party apps

* Adding some missing filetypes (thanks OptimShi!)

* Adding more enums, using SmartArray

* Re-adding loadCell

* Reverting to UInt32
2018-11-22 01:33:17 -05:00

23 lines
666 B
C#

using System.IO;
namespace ACE.DatLoader.Entity
{
public class AnimData : IUnpackable
{
public uint AnimId { get; private set; }
public int LowFrame { get; private set; }
public int HighFrame { get; private set; }
/// <summary>
/// Negative framerates play animation in reverse
/// </summary>
public float Framerate { get; private set; }
public void Unpack(BinaryReader reader)
{
AnimId = reader.ReadUInt32();
LowFrame = reader.ReadInt32();
HighFrame = reader.ReadInt32();
Framerate = reader.ReadSingle();
}
}
}