Exemple #1
0
 private void Input_OnInputRemoved(NodeInput n)
 {
     if (ParentGraph != null && !string.IsNullOrEmpty(varName))
     {
         ParentGraph.SetVar(varName, null, output.Type);
     }
 }
Exemple #2
0
        void Process()
        {
            if (string.IsNullOrEmpty(varName))
            {
                return;
            }

            if (ParentGraph != null)
            {
                ParentGraph.SetVar(varName, input.Input.Data, output.Type);
            }

            output.Data = input.Input.Data;
            if (output.Data != null)
            {
                result = output.Data.ToString();
            }

            if (ParentGraph != null)
            {
                FunctionGraph g = (FunctionGraph)ParentGraph;

                if (g != null && g.OutputNode == this)
                {
                    g.Result = output.Data;
                }
            }
        }
Exemple #3
0
        void Process()
        {
            if (string.IsNullOrEmpty(varName))
            {
                return;
            }

            if (ParentGraph != null)
            {
                ParentGraph.SetVar(varName, input.Input.Data);
            }

            output.Data = input.Input.Data;
            if (Outputs.Count > 0)
            {
                Outputs[0].Changed();
            }

            if (ParentGraph != null)
            {
                FunctionGraph g = (FunctionGraph)ParentGraph;

                if (g != null && g.OutputNode == this)
                {
                    g.Result = output.Data;
                }
            }
        }
Exemple #4
0
        private void Input_OnInputRemoved(NodeInput n)
        {
            if (ParentGraph != null)
            {
                ParentGraph.SetVar(varName, null);
            }

            output.Data = null;
            output.Changed();
        }
Exemple #5
0
        private void Input_OnInputAdded(NodeInput n)
        {
            UpdateOutputType();

            //just set the var here in case
            //try and process is not triggered by update
            if (ParentGraph != null && !string.IsNullOrEmpty(varName))
            {
                ParentGraph.SetVar(varName, input.Input.Data, output.Type);
            }

            Updated();
        }
Exemple #6
0
        void Process()
        {
            if (ParentGraph != null)
            {
                ParentGraph.SetVar(varName, input.Input.Data);
            }

            output.Data = input.Input.Data;
            output.Changed();

            if (ParentGraph != null)
            {
                FunctionGraph g = (FunctionGraph)ParentGraph;

                if (g != null && g.OutputNode == this)
                {
                    g.Result = output.Data;
                }
            }
        }