protected override void OnInit() { PinCollection.AddInput("A", typeof(bool)); PinCollection.AddInput("B", typeof(bool)); PinCollection.AddOutput("Result", typeof(bool)); }
protected override void OnInit() { Type = AllowedTypes[0]; PinCollection.AddInput("A", Type); PinCollection.AddInput("B", Type); PinCollection.AddOutput("Result", typeof(bool)); }
protected override void OnInit() { PinCollection.AddInput("Input", typeof(object)); var input = PinCollection.Get("Input"); input.IsDynamicType = true; PinCollection.AddOutput("Result", typeof(string)); }
void onInputTypeChanged(bool wasInput, bool isInput) { var pin = PinCollection.Get("Value"); if (pin != null) { Pin.Disconnect(pin); } PinCollection.Clear(); if (IsInput) { PinCollection.AddInput("Value", Type); } else { PinCollection.AddOutput("Value", Type); } }
protected override void OnInit() { PinCollection.AddInTransition("IN"); PinCollection.AddInput("Value", typeof(int)); WeightData w1 = new WeightData() { VariableName = "Weight_0", OutputName = "Weight_0" }; Variables.Add(w1.VariableName, 1, "Input"); PinCollection.AddOutTransition(w1.OutputName); Weights.Add(w1); WeightData w2 = new WeightData() { VariableName = "Weight_1", OutputName = "Weight_1" }; Variables.Add(w2.VariableName, 3, "Input"); PinCollection.AddOutTransition(w2.OutputName); Weights.Add(w2); }
protected override void OnInit() { PinCollection.AddInput("Condition", typeof(bool)); PinCollection.AddOutTransition("True"); PinCollection.AddOutTransition("False"); }
protected override void OnInit() { PinCollection.AddInput("Message", typeof(string)); Variables.Add("Message", "", "Input"); }
protected override void OnInit() { PinCollection.AddInput("Seconds", typeof(float)); Variables.Add("Seconds", typeof(float), 0f, "Input"); }
protected override void OnInit() { PinCollection.AddInput("Value", typeof(object)); PinCollection.AddOutput("NewValue", typeof(object)); }