Exemple #1
0
        protected override void OnInit()
        {
            PinCollection.AddInput("A", typeof(bool));
            PinCollection.AddInput("B", typeof(bool));

            PinCollection.AddOutput("Result", typeof(bool));
        }
Exemple #2
0
        protected override void OnInit()
        {
            Type = AllowedTypes[0];

            PinCollection.AddInput("A", Type);
            PinCollection.AddInput("B", Type);
            PinCollection.AddOutput("Result", typeof(bool));
        }
Exemple #3
0
        protected override void OnInit()
        {
            PinCollection.AddInput("Input", typeof(object));
            var input = PinCollection.Get("Input");

            input.IsDynamicType = true;

            PinCollection.AddOutput("Result", typeof(string));
        }
Exemple #4
0
        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);
        }
Exemple #6
0
 protected override void OnInit()
 {
     PinCollection.AddInput("Condition", typeof(bool));
     PinCollection.AddOutTransition("True");
     PinCollection.AddOutTransition("False");
 }
Exemple #7
0
 protected override void OnInit()
 {
     PinCollection.AddInput("Message", typeof(string));
     Variables.Add("Message", "", "Input");
 }
Exemple #8
0
 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));
 }