Пример #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));
 }