C4 Engine
C4 Engine API Documentation

Node::GetConnectedNode

Defined in:  C4Node.h
Returns the connected node with a particular key.
Prototype

Node *GetConnectedNode(const char *key) const;

Parameters
key The key value of the connector.
Description
The GetConnectedNode function searches for a connector having a key matching the key parameter and, if such a connector is found, returns the node to which it connects. If there is no connector with the matching key, or the connector exists but is not connected to another node, then the return value is nullptr. If the key parameter points to an empty string, then the GetConnectedNode function always returns nullptr.
See Also

Node::SetConnectedNode

Node::AddConnector

Node::RemoveConnector

Node::GetHub