/// <summary> /// Adds the step. /// </summary> /// <returns>The added step.</returns> public SpriteAnimationStep AddStep() { var step = new SpriteAnimationStep(); this._steps.Add(step); return(step); }
/// <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); } }
/// <summary> /// Adds the step. /// </summary> /// <param name="step">The step.</param> public void AddStep(SpriteAnimationStep step) { this._steps.Add(step); }
/// <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)); }