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); }
internal ofNode(ofNode parent) { Root = parent?.Root; Parent = parent; }