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

Method behaviorConfig

source/game/StarBehaviorDatabase.cpp:220–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

218}
219
220Json BehaviorDatabase::behaviorConfig(String const& name) const {
221 if (!m_configs.contains(name))
222 throw StarException(strf("No such behavior tree \'{}\'", name));
223
224 return m_configs.get(name);
225}
226
227void BehaviorDatabase::loadTree(String const& name) {
228 m_behaviors.set(name, buildTree(m_configs.get(name)));

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