We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fd1240 commit 09bdfc2Copy full SHA for 09bdfc2
include/behaviortree_cpp_v3/config.cpp
@@ -54,6 +54,10 @@ namespace BT {
54
case is_daytime:
55
ret = Public::is_daytime();
56
break;
57
+ case night_sleeping:
58
+ /* only fake sleeping is considered */
59
+ ret = IvyEngine::instance().fake_sleeping();
60
+ break;
61
}
62
if (reverse) {
63
return !ret;
include/behaviortree_cpp_v3/config_implt.h
@@ -41,6 +41,7 @@ namespace BT {
41
touching_plant = 6, /* 触摸植物中 */
42
hugging = 7, /* 抱住中 */
43
is_daytime = 8, /* 处于白天 */
44
+ night_sleeping = 9, /* 夜间睡眠中 */
45
};
46
47
enum value_t : int {
0 commit comments