/// <summary> /// Returns whether this entity contains the given animation. </summary> /// <param name="anim"> the animation to check </param> /// <returns> true if the given animation is in this entity, false otherwise. </returns> public virtual bool ContainsAnimation(SpriterAnimation anim) { foreach (SpriterAnimation a in this.spriterAnimations) { if (a == anim) { return(true); } } return(false); }
internal virtual void AddAnimation(SpriterAnimation anim) { this.spriterAnimations[animationPointer++] = anim; this.namedAnimations[anim.Name] = anim; }