摘要:
这里先看一下异步发布和订阅的代码部分,后面再详细讲解原理 redis_publisher.h文件 // // Created by gary on 2021/4/28. // #ifndef REDIS_REDIS_PUBLISHER_H #define REDIS_REDIS_PUBLISHER_ 阅读全文
摘要:
如何处理不打算在BehaviorTree.CPP中使用的旧代码; 类可能是如下: // This is my custom type. struct Point3D { double x,y,z; }; // We want to create an ActionNode to calls meth 阅读全文
摘要:
可以构建将多个更小的可重复使用的行为到一个更大的树中; 换句话说,想构建分层的行为树; 通过在XML中定义多个树来实现; CrossDoor behavior This example is inspired by a popular article about behavior trees. It 阅读全文
摘要:
解析字符串 BehaviorTree.CPP支持自动将字符串strings类型转换为公共类型,如int,long,double,bool,NodeStatus等; 用户定义的类型也可以被支持,如 // We want to be able to use this custom type struct 阅读全文