ace/Source/ACE.Server/Physics/Animation/Animation.cs
2018-03-11 07:36:42 -05:00

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));
}
}
}