Exemplo n.º 1
0
        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();
        }
Exemplo n.º 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();
        }
Exemplo n.º 3
0
 public int GetAnimationTag(AnimationTags type)
 {
     if (Animations.Keys.Contains((int)type))
     {
         return((int)type);
     }
     return(-1);
 }
Exemplo n.º 4
0
 public bool TagExists(AnimationTags type)
 {
     if (Animations.Keys.Contains((int)type))
     {
         return(true);
     }
     return(false);
 }
Exemplo n.º 5
0
 public int GetAniSNO(AnimationTags type)
 {
     if (Animations.Keys.Contains((int)type))
     {
         if (Animations[(int)type] != -1)
         {
             return(Animations[(int)type]);
         }
     }
     return(-1);
 }
Exemplo n.º 6
0
 public int GetAniSNO(AnimationTags type)
 {
     if (Animations.Keys.Contains((int)type))
     {
         if (Animations[(int)type] != -1)
         {
             return Animations[(int)type];
         }
     }
     return -1;
 }
Exemplo n.º 7
0
 public bool TagExists(AnimationTags type)
 {
     if (Animations.Keys.Contains((int)type))
     {
         return true;
     }
     return false;
 }
Exemplo n.º 8
0
 public int GetAnimationTag(AnimationTags type)
 {
     if (Animations.Keys.Contains((int)type))
     {
         return (int)type;
     }
     return -1;
 }
Exemplo n.º 9
0
 public XAnimation GetXAnimation(CharacterTags c_tag, AnimationTags a_tag)
 {
     return(character_dictionary[c_tag][a_tag]);
 }