示例#1
0
        /// <summary>
        /// Adds the step.
        /// </summary>
        /// <returns>The added step.</returns>
        public SpriteAnimationStep AddStep()
        {
            var step = new SpriteAnimationStep();

            this._steps.Add(step);
            return(step);
        }
示例#2
0
 /// <summary>
 /// Adds the step.
 /// </summary>
 /// <param name="step">The step.</param>
 /// <param name="index">The index.</param>
 public void AddStep(SpriteAnimationStep step, int index)
 {
     if (index >= this._steps.Count)
     {
         this._steps.Add(step);
     }
     else
     {
         this._steps.Insert(index, step);
     }
 }
示例#3
0
 /// <summary>
 /// Adds the step.
 /// </summary>
 /// <param name="step">The step.</param>
 public void AddStep(SpriteAnimationStep step)
 {
     this._steps.Add(step);
 }
示例#4
0
 /// <summary>
 /// Removes the step.
 /// </summary>
 /// <param name="step">The step.</param>
 /// <returns>A value indicating whether or not the step was removed.</returns>
 public bool RemoveStep(SpriteAnimationStep step)
 {
     return(this._steps.Remove(step));
 }