| 216 | } |
| 217 | |
| 218 | void BehaviorTreeFactory::registerSimpleCondition( |
| 219 | const std::string& ID, const SimpleConditionNode::TickFunctor& tick_functor, |
| 220 | PortsList ports) |
| 221 | { |
| 222 | const NodeBuilder builder = [tick_functor, ID](const std::string& name, |
| 223 | const NodeConfig& config) { |
| 224 | return std::make_unique<SimpleConditionNode>(name, tick_functor, config); |
| 225 | }; |
| 226 | |
| 227 | const TreeNodeManifest manifest = { NodeType::CONDITION, ID, std::move(ports), {} }; |
| 228 | registerBuilder(manifest, builder); |
| 229 | } |
| 230 | |
| 231 | void BehaviorTreeFactory::registerSimpleAction( |
| 232 | const std::string& ID, const SimpleActionNode::TickFunctor& tick_functor, |