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

Method nodeLuaThread

source/game/StarBehaviorState.cpp:180–184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180LuaThread BehaviorState::nodeLuaThread(String const& funcName) {
181 LuaThread thread = m_threads.maybeTakeLast().value(m_luaContext.engine().createThread());
182 thread.pushFunction(m_functions.get(funcName));
183 return thread;
184}
185
186NodeStatus BehaviorState::runNode(BehaviorNode const& node, NodeState& state) {
187 NodeStatus status = NodeStatus::Invalid;

Callers

nothing calls this directly

Calls 5

createThreadMethod · 0.80
pushFunctionMethod · 0.80
valueMethod · 0.45
maybeTakeLastMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected