Example #1
0
 /// <summary>
 ///     Creates a new <see cref="Animation"/> structure with a forward
 ///     animation direction.
 /// </summary>
 /// <param name="name">
 ///     The name of this animation.
 /// </param>
 /// <param name="from">
 ///     The index of the frame that this animation starts on.
 /// </param>
 /// <param name="to">
 ///     The index of the frame that this animation ends on.
 /// </param>
 public Animation(string name, int from, int to)
 {
     Name      = name;
     From      = from;
     To        = to;
     Direction = AnimationLoopDirection.Forward;
     IsOneShot = false;
 }
Example #2
0
 /// <summary>
 ///     Creates a new <see cref="Animation"/> structure
 /// </summary>
 /// <param name="name">
 ///     The name of this animation.
 /// </param>
 /// <param name="from">
 ///     The index of the frame that this animation starts on.
 /// </param>
 /// <param name="to">
 ///     The index of the frame that this animation ends on.
 /// </param>
 /// <param name="direction">
 ///     The direction in which the animation loops through its frames.
 /// </param>
 public Animation(string name, int from, int to, AnimationLoopDirection direction)
 {
     Name      = name;
     From      = from;
     To        = to;
     Direction = direction;
     IsOneShot = false;
 }
Example #3
0
 /// <summary>
 ///     Creates a new <see cref="Animation"/> structure
 /// </summary>
 /// <param name="name">
 ///     The name of this animation.
 /// </param>
 /// <param name="from">
 ///     The index of the frame that this animation starts on.
 /// </param>
 /// <param name="to">
 ///     The index of the frame that this animation ends on.
 /// </param>
 /// <param name="direction">
 ///     The direction in which the animation loops through its frames.
 /// </param>
 /// <param name="isOneShot">
 ///     A value indicating if the animation should only play once and not loop.
 /// </param>
 public Animation(string name, int from, int to, AnimationLoopDirection direction, bool isOneShot)
 {
     Name      = name;
     From      = from;
     To        = to;
     Direction = direction;
     IsOneShot = isOneShot;
 }