public void Clear()
        {
            var varE = ObjectVars.GetEnumerator();

            while (varE.MoveNext())
            {
                SpriterObjectPool.ReturnStructDict(varE.Current.Value);
            }
            ObjectVars.Clear();

            var tagE = ObjectTags.GetEnumerator();

            while (tagE.MoveNext())
            {
                var list = tagE.Current.Value;
                list.Clear();
                SpriterObjectPool.ReturnObject(list);
            }
            ObjectTags.Clear();

            Sounds.Clear();
            AnimationVars.Clear();
            AnimationTags.Clear();
            Events.Clear();
        }
Example #2
0
        public void Clear()
        {
            pool.ReturnChildren(SpriteData);
            pool.ReturnChildren(PointData);
            pool.ReturnChildren(BoxData);

            var varE = ObjectVars.GetEnumerator();

            while (varE.MoveNext())
            {
                pool.ReturnChildren(varE.Current.Value);
                pool.ReturnObject(varE.Current.Value);
            }
            ObjectVars.Clear();

            var tagE = ObjectTags.GetEnumerator();

            while (tagE.MoveNext())
            {
                var list = tagE.Current.Value;
                list.Clear();
                pool.ReturnObject(list);
            }
            ObjectTags.Clear();

            Sounds.Clear();
            AnimationVars.Clear();
            AnimationTags.Clear();
            Events.Clear();
        }
Example #3
0
 public int GetAnimationTag(AnimationTags type)
 {
     if (Animations.Keys.Contains((int)type))
     {
         return((int)type);
     }
     return(-1);
 }
Example #4
0
 public bool TagExists(AnimationTags type)
 {
     if (Animations.Keys.Contains((int)type))
     {
         return(true);
     }
     return(false);
 }
Example #5
0
 public int GetAniSNO(AnimationTags type)
 {
     if (Animations.Keys.Contains((int)type))
     {
         if (Animations[(int)type] != -1)
         {
             return(Animations[(int)type]);
         }
     }
     return(-1);
 }
Example #6
0
 public int GetAniSNO(AnimationTags type)
 {
     if (Animations.Keys.Contains((int)type))
     {
         if (Animations[(int)type] != -1)
         {
             return Animations[(int)type];
         }
     }
     return -1;
 }
Example #7
0
 public bool TagExists(AnimationTags type)
 {
     if (Animations.Keys.Contains((int)type))
     {
         return true;
     }
     return false;
 }
Example #8
0
 public int GetAnimationTag(AnimationTags type)
 {
     if (Animations.Keys.Contains((int)type))
     {
         return (int)type;
     }
     return -1;
 }
 public XAnimation GetXAnimation(CharacterTags c_tag, AnimationTags a_tag)
 {
     return(character_dictionary[c_tag][a_tag]);
 }