MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / addMetadataToManifest

Method addMetadataToManifest

src/bt_factory.cpp:480–489  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

478}
479
480void 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
491void BehaviorTreeFactory::registerScriptingEnum(StringView name, int value)
492{

Callers 1

TESTFunction · 0.80

Calls 1

endMethod · 0.45

Tested by 1

TESTFunction · 0.64