示例#1
0
        public bool TrySerialize(out SerInputPort serInputPort)
        {
            if (direction == Direction.Output)
            {
                serInputPort = null;
                return(false);
            }
            else
            {
                BehaviourT.Node outputNode     = null;
                string          outputPortName = null;

                if (connected)
                {
                    if (connections.First().output is LogicPort output)
                    {
                        outputNode     = output.nodeParent;
                        outputPortName = output.basePort.Name;
                    }
                }
                serInputPort = new SerInputPort(outputNode, outputPortName, basePort.Name);
                return(true);
            }
        }
示例#2
0
 internal virtual void TryConnectOutputPort(SerInputPort serInputPort)
 {
 }