Exemple #1
0
        public ConnectionEvaluator(IConnection c, NodeEvaluator opne)
        {
            connection = c;
            outputPinNodeEvaluator = opne;

            Dirty = true;
        }
Exemple #2
0
        private void createEvaluators()
        {
            nodeEvaluators.Clear();
            connectionEvaluators.Clear();

            foreach (var n in patch.Nodes) {
                n.init();
                nodeEvaluators[n] = new NodeEvaluator(n);
            }

            foreach (var c in patch.Connections) {
                Debug.LogFormat("connection: {0} | {1} -> {2}", c, c.From, c.To);
                Debug.LogFormat("connection: {0} | {1} -> {2}", c, c.From.Node, c.To.Node);

                connectionEvaluators[c] = new ConnectionEvaluator(c, nodeEvaluators[c.From.Node]);

                nodeEvaluators[c.From.Node].AddOutputEvaluator(connectionEvaluators[c]);
                nodeEvaluators[c.To.Node].AddInputEvaluator(connectionEvaluators[c]);
            }
        }