Node::SetConnectedNode
Defined in: C4Node.h
Sets the connected node with a particular key.
Prototype
bool SetConnectedNode(const ConnectorKey& key, Node *node) const;
Parameters
key |
The key value of the connector.
|
node |
The node to which the connector should be linked. This may be nullptr.
|
Description
The SetConnectedNode function searches for a connector having a key matching the key parameter and, if such a connector is found, connects it to the node specified by the node parameter and returns true. If there is no connector with the matching key, then this function returns false.
If the connector exists, and the node parameter is nullptr, then the target of the connector is set to the node for which the SetConnectedNode function is called. That is, unconnected connectors loop back to their starting points.
See Also
Node::GetConnectedNode
Node::GetFirstConnector
Node::AddConnector
|