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

Method registerBuilder

src/bt_factory.cpp:205–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205void BehaviorTreeFactory::registerBuilder(const TreeNodeManifest& manifest,
206 const NodeBuilder& builder)
207{
208 auto it = _p->builders.find(manifest.registration_ID);
209 if(it != _p->builders.end())
210 {
211 throw BehaviorTreeException("ID [", manifest.registration_ID, "] already registered");
212 }
213
214 _p->builders.insert({ manifest.registration_ID, builder });
215 _p->manifests.insert({ manifest.registration_ID, manifest });
216}
217
218void BehaviorTreeFactory::registerSimpleCondition(
219 const std::string& ID, const SimpleConditionNode::TickFunctor& tick_functor,

Callers 1

mainFunction · 0.45

Calls 2

endMethod · 0.45

Tested by

no test coverage detected