mirror of
https://github.com/ACEmulator/ACE
synced 2026-08-17 12:26:06 -04:00
28 lines
842 B
C#
28 lines
842 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();
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"AnimId: {AnimId:X8}, LowFrame: {LowFrame}, HighFrame: {HighFrame}, FrameRate: {Framerate}";
|
|
}
|
|
}
|
|
}
|