示例#1
0
        internal bool Set(ofNode node, EffectDelegate effect, object[] dependencies)
        {
            var pending = _node == null || dependencies?.Length == 0 || !Utils.ObjectsEqual(_dependencies, dependencies);

            _node         = node;
            _element      = node.Element;
            _dependencies = dependencies;
            _effect       = effect;

            node.LocalEffects.Add(this);

            if (pending)
            {
                node.Root.PendingEffects.Enqueue(this);
            }

            return(pending);
        }
示例#2
0
 internal ofNode(ofNode parent)
 {
     Root   = parent?.Root;
     Parent = parent;
 }