public void CloneAnimation(int anim) { AnimationEntry a = new AnimationEntry(); a.AnimName = Animations[anim].AnimName; byte FrameAmount = (byte)Animations[anim].Frames.Count; a.LoopIndex = Animations[anim].LoopIndex; a.SpeedMultiplyer = Animations[anim].SpeedMultiplyer; a.RotationFlags = Animations[anim].RotationFlags; a.Frames.Clear(); for (int i = 0; i < FrameAmount; i++) { a.Frames.Add((AnimationEntry.Frame)Animations[anim].Frames[i].Clone()); } Animations.Add(a); }
public void NewAnimation() { AnimationEntry a = new AnimationEntry(); Animations.Add(a); }
public void Factory(out IAnimationEntry o) { o = new AnimationEntry(); }