C4 Engine
C4 Engine API Documentation

class Hub

Defined in:  C4Connector.h
The Hub class represents a node in the graph of hubs and connectors.

class Hub final : public GraphElement<Hub, Connector>


Hub(Node *node);

node The node associated with the hub.
Every node may have a Hub to which one or more connectors are attached, allowing the node to link to other nodes in a scene. Whenever a connector links two nodes, the nodes at both ends of the connector have an instance of the Hub class attached to them. The Hub objects are created automatically when connections are made through functions such as Node::AddConnector and Node::SetConnectedNode.
Base Classes
GraphElement<Hub, Connector> Hubs form the elements in a directed graph in which the edges are connectors.
See Also