| 229 | } |
| 230 | |
| 231 | void BehaviorTreeFactory::registerSimpleAction( |
| 232 | const std::string& ID, const SimpleActionNode::TickFunctor& tick_functor, |
| 233 | PortsList ports) |
| 234 | { |
| 235 | const NodeBuilder builder = [tick_functor, ID](const std::string& name, |
| 236 | const NodeConfig& config) { |
| 237 | return std::make_unique<SimpleActionNode>(name, tick_functor, config); |
| 238 | }; |
| 239 | |
| 240 | const TreeNodeManifest manifest = { NodeType::ACTION, ID, std::move(ports), {} }; |
| 241 | registerBuilder(manifest, builder); |
| 242 | } |
| 243 | |
| 244 | void BehaviorTreeFactory::registerSimpleDecorator( |
| 245 | const std::string& ID, const SimpleDecoratorNode::TickFunctor& tick_functor, |