| 218 | } |
| 219 | |
| 220 | Json 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 | |
| 227 | void BehaviorDatabase::loadTree(String const& name) { |
| 228 | m_behaviors.set(name, buildTree(m_configs.get(name))); |
no test coverage detected