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

Method behaviorTree

source/game/StarBehaviorDatabase.cpp:199–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199BehaviorTreeConstPtr BehaviorDatabase::behaviorTree(String const& name) const {
200 if (!m_behaviors.contains(name))
201 throw StarException(strf("No such behavior tree \'{}\'", name));
202
203 return m_behaviors.get(name);
204}
205
206BehaviorTreeConstPtr BehaviorDatabase::buildTree(Json const& config, StringMap<NodeParameterValue> const& overrides) const {
207 StringSet scripts = jsonToStringSet(config.get("scripts", JsonArray()));

Callers 1

makeBehaviorCallbacksMethod · 0.80

Calls 4

StarExceptionClass · 0.85
strfFunction · 0.85
containsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected