MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / connectionsForNode

Method connectionsForNode

source/game/StarObject.cpp:784–789  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

782}
783
784List<WireConnection> Object::connectionsForNode(WireNode wireNode) const {
785 if (wireNode.direction == WireDirection::Input)
786 return m_inputNodes.at(wireNode.nodeIndex).connections.get();
787 else
788 return m_outputNodes.at(wireNode.nodeIndex).connections.get();
789}
790
791bool Object::nodeState(WireNode wireNode) const {
792 if (wireNode.direction == WireDirection::Input)

Callers 4

handleIncomingPacketsMethod · 0.80
loadNetworkMethod · 0.80
renderImplMethod · 0.80
swingMethod · 0.80

Calls 2

getMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected