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(); }
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(); }
public int GetAnimationTag(AnimationTags type) { if (Animations.Keys.Contains((int)type)) { return((int)type); } return(-1); }
public bool TagExists(AnimationTags type) { if (Animations.Keys.Contains((int)type)) { return(true); } return(false); }
public int GetAniSNO(AnimationTags type) { if (Animations.Keys.Contains((int)type)) { if (Animations[(int)type] != -1) { return(Animations[(int)type]); } } return(-1); }
public int GetAniSNO(AnimationTags type) { if (Animations.Keys.Contains((int)type)) { if (Animations[(int)type] != -1) { return Animations[(int)type]; } } return -1; }
public bool TagExists(AnimationTags type) { if (Animations.Keys.Contains((int)type)) { return true; } return false; }
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]); }