예제 #1
0
 /// <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);
 }
예제 #2
0
 internal virtual void AddAnimation(SpriterAnimation anim)
 {
     this.spriterAnimations[animationPointer++] = anim;
     this.namedAnimations[anim.Name]            = anim;
 }