/// <summary> /// Creates the input and output nodes /// </summary> /// <param name="root"></param> protected override sealed void CreateNodes(ref BlockBase root) { root.OutputNodes = BlockOutputNode.CreateSingleOutput(ref root); root.InputNodes = new List <BlockInputNode>(); for (var i = 1; i <= _inputCount; i++) { root.InputNodes.Add(new BlockInputNode(ref root, Resources.Input + i, Resources.In + i)); } }
/// <summary> /// Creates the input and output nodes /// </summary> /// <param name="root"></param> protected override sealed void CreateNodes(ref BlockBase root) { root.InputNodes = new List <BlockInputNode> { new BlockInputNode(ref root, Resources.Input + "1", Resources.In + "1"), new BlockInputNode(ref root, Resources.Input + "2", Resources.In + "2"), new BlockInputNode(ref root, Resources.Input + "3", Resources.In + "3") }; root.OutputNodes = BlockOutputNode.CreateSingleOutput(ref root); }
/// <summary> /// Creates the input and output nodes /// </summary> /// <param name="root"></param> protected override sealed void CreateNodes(ref BlockBase root) { root.InputNodes = BlockInputNode.CreateSingleInputSignal(ref root); root.OutputNodes = BlockOutputNode.CreateSingleOutput(ref root); }