internal static bool EnumComponent(SpriteAnimationComponent comp, ComponentDelegate callback, bool skipNotExpand)
        {
            if (!callback(comp))
                return false;

            if (!skipNotExpand || comp.expand)
                foreach (int idx in comp.children)
                    if (!EnumComponent(comp.clip.subComponents[idx], callback, skipNotExpand))
                        return false;

            return true;
        }
Beispiel #2
0
        internal static bool EnumComponent(SpriteAnimationComponent comp, ComponentDelegate callback, bool skipNotExpand)
        {
            if (!callback(comp))
            {
                return(false);
            }

            if (!skipNotExpand || comp.expand)
            {
                foreach (int idx in comp.children)
                {
                    if (!EnumComponent(comp.clip.subComponents[idx], callback, skipNotExpand))
                    {
                        return(false);
                    }
                }
            }

            return(true);
        }
 public static void EnumComponent(SpriteAnimationClip clip, ComponentDelegate callback, bool skipNotExpand)
 {
     EnumComponent(clip.root, callback, skipNotExpand);
 }
Beispiel #4
0
 public static void EnumComponent(SpriteAnimationClip clip, ComponentDelegate callback, bool skipNotExpand)
 {
     EnumComponent(clip.root, callback, skipNotExpand);
 }