| 478 | } |
| 479 | |
| 480 | void BehaviorTreeFactory::addMetadataToManifest(const std::string& node_id, |
| 481 | const KeyValueVector& metadata) |
| 482 | { |
| 483 | auto it = _p->manifests.find(node_id); |
| 484 | if(it == _p->manifests.end()) |
| 485 | { |
| 486 | throw std::runtime_error("addMetadataToManifest: wrong ID"); |
| 487 | } |
| 488 | it->second.metadata = metadata; |
| 489 | } |
| 490 | |
| 491 | void BehaviorTreeFactory::registerScriptingEnum(StringView name, int value) |
| 492 | { |