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

Method setOutput

source/game/StarBehaviorState.cpp:98–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98void Blackboard::setOutput(ActionNode const& node, LuaTable const& output) {
99 for (auto p : node.output) {
100 auto out = p.second.second;
101 if (auto boardKey = out.first) {
102 set(p.second.first, *boardKey, output.get<LuaValue>(p.first));
103
104 if (out.second)
105 m_ephemeral.add({p.second.first, *boardKey});
106 }
107 }
108}
109
110Set<pair<NodeParameterType, String>> Blackboard::takeEphemerals() {
111 return take(m_ephemeral);

Callers 1

runActionMethod · 0.80

Calls 2

setFunction · 0.50
addMethod · 0.45

Tested by

no test coverage detected