| 197 | } |
| 198 | |
| 199 | BehaviorTreeConstPtr 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 | |
| 206 | BehaviorTreeConstPtr BehaviorDatabase::buildTree(Json const& config, StringMap<NodeParameterValue> const& overrides) const { |
| 207 | StringSet scripts = jsonToStringSet(config.get("scripts", JsonArray())); |
no test coverage detected