예제 #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();
        }
예제 #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();
        }
예제 #3
0
 public int GetAnimationTag(AnimationTags type)
 {
     if (Animations.Keys.Contains((int)type))
     {
         return((int)type);
     }
     return(-1);
 }
예제 #4
0
 public bool TagExists(AnimationTags type)
 {
     if (Animations.Keys.Contains((int)type))
     {
         return(true);
     }
     return(false);
 }
예제 #5
0
 public int GetAniSNO(AnimationTags type)
 {
     if (Animations.Keys.Contains((int)type))
     {
         if (Animations[(int)type] != -1)
         {
             return(Animations[(int)type]);
         }
     }
     return(-1);
 }
예제 #6
0
파일: AnimSet.cs 프로젝트: Naxp/mooege
 public int GetAniSNO(AnimationTags type)
 {
     if (Animations.Keys.Contains((int)type))
     {
         if (Animations[(int)type] != -1)
         {
             return Animations[(int)type];
         }
     }
     return -1;
 }
예제 #7
0
파일: AnimSet.cs 프로젝트: Naxp/mooege
 public bool TagExists(AnimationTags type)
 {
     if (Animations.Keys.Contains((int)type))
     {
         return true;
     }
     return false;
 }
예제 #8
0
파일: AnimSet.cs 프로젝트: Naxp/mooege
 public int GetAnimationTag(AnimationTags type)
 {
     if (Animations.Keys.Contains((int)type))
     {
         return (int)type;
     }
     return -1;
 }
예제 #9
0
 public XAnimation GetXAnimation(CharacterTags c_tag, AnimationTags a_tag)
 {
     return(character_dictionary[c_tag][a_tag]);
 }