mirror of
https://github.com/ACEmulator/ACE
synced 2026-08-17 12:26:06 -04:00
29 lines
813 B
C#
29 lines
813 B
C#
using System.Collections.Generic;
|
|
using ACE.DatLoader.Entity;
|
|
|
|
namespace ACE.Server.Physics.Animation
|
|
{
|
|
public class Animation
|
|
{
|
|
public uint ID;
|
|
public List<AFrame> PosFrames;
|
|
public List<AnimationFrame> PartFrames;
|
|
public bool HasHooks;
|
|
public uint NumParts;
|
|
public uint NumFrames;
|
|
|
|
public Animation() { }
|
|
|
|
public Animation(DatLoader.FileTypes.Animation anim)
|
|
{
|
|
ID = anim.Id;
|
|
HasHooks = false; // comes from bitfield?
|
|
NumParts = anim.NumParts;
|
|
NumFrames = anim.NumFrames;
|
|
PartFrames = anim.PartFrames;
|
|
PosFrames = new List<AFrame>();
|
|
foreach (var posFrame in anim.PosFrames)
|
|
PosFrames.Add(new AFrame(posFrame));
|
|
}
|
|
}
|
|
}
|