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

Method nodeState

source/game/StarObject.cpp:791–796  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

789}
790
791bool Object::nodeState(WireNode wireNode) const {
792 if (wireNode.direction == WireDirection::Input)
793 return m_inputNodes.at(wireNode.nodeIndex).state.get();
794 else
795 return m_outputNodes.at(wireNode.nodeIndex).state.get();
796}
797
798void Object::addNodeConnection(WireNode wireNode, WireConnection nodeConnection) {
799 if (wireNode.direction == WireDirection::Input) {

Callers 2

populateWorkingMethod · 0.80
renderImplMethod · 0.80

Calls 2

getMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected