| 187 | BehaviorTreeFactory::operator=(BehaviorTreeFactory&& other) noexcept = default; |
| 188 | |
| 189 | bool BehaviorTreeFactory::unregisterBuilder(const std::string& ID) |
| 190 | { |
| 191 | if(builtinNodes().count(ID) != 0) |
| 192 | { |
| 193 | throw LogicError("You can not remove the builtin registration ID [", ID, "]"); |
| 194 | } |
| 195 | auto it = _p->builders.find(ID); |
| 196 | if(it == _p->builders.end()) |
| 197 | { |
| 198 | return false; |
| 199 | } |
| 200 | _p->builders.erase(ID); |
| 201 | _p->manifests.erase(ID); |
| 202 | return true; |
| 203 | } |
| 204 | |
| 205 | void BehaviorTreeFactory::registerBuilder(const TreeNodeManifest& manifest, |
| 206 | const NodeBuilder& builder) |
nothing calls this directly
no test coverage detected