| 828 | } |
| 829 | |
| 830 | void Object::evaluate(WireCoordinator* coordinator) { |
| 831 | for (size_t i = 0; i < m_inputNodes.size(); ++i) { |
| 832 | auto& in = m_inputNodes[i]; |
| 833 | bool nextState = false; |
| 834 | for (auto const& connection : in.connections.get()) |
| 835 | nextState |= coordinator->readInputConnection(connection); |
| 836 | |
| 837 | if (in.state.get() != nextState) { |
| 838 | in.state.set(nextState); |
| 839 | m_scriptComponent.invoke("onInputNodeChange", JsonObject{ |
| 840 | {"node", i}, |
| 841 | {"level", nextState} |
| 842 | }); |
| 843 | } |
| 844 | } |
| 845 | } |
| 846 | |
| 847 | void Object::setImageKey(String const& name, String const& value) { |
| 848 | if (!isSlave()) |
no test coverage detected