mirror of
https://github.com/ACEmulator/ACE
synced 2026-08-17 12:26:06 -04:00
* Improving DatLoader for third-party apps * Adding some missing filetypes (thanks OptimShi!) * Adding more enums, using SmartArray * Re-adding loadCell * Reverting to UInt32
23 lines
666 B
C#
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();
|
|
}
|
|
}
|
|
}
|