private void Input_OnInputRemoved(NodeInput n) { if (ParentGraph != null && !string.IsNullOrEmpty(varName)) { ParentGraph.SetVar(varName, null, output.Type); } }
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; } } }
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; } } }
private void Input_OnInputRemoved(NodeInput n) { if (ParentGraph != null) { ParentGraph.SetVar(varName, null); } output.Data = null; output.Changed(); }
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(); }
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; } } }