Polish up behaviour tree, add docs

This commit is contained in:
2024-01-11 09:33:51 +01:00
parent 36d8bac7c4
commit 25a3229bb2
5 changed files with 192 additions and 37 deletions

View File

@@ -279,9 +279,9 @@ static void visualizeBTState(const BzBTNode *node, const BzBTNodeState *state, b
igTextColored(color, "%s%*s%s%s%s", prefix, offset, "", bzBTNodeTypeToStr(type), extraInfo, postfix);
bool isComposite = type == BZ_BT_COMP_SELECTOR ||
type == BZ_BT_COMP_P_SELECTOR ||
type == BZ_BT_COMP_PSELECTOR ||
type == BZ_BT_COMP_SEQUENCE ||
type == BZ_BT_COMP_P_SEQUENCE;
type == BZ_BT_COMP_PSEQUENCE;
depth++;
while (child) {
if (hasSingleChild) igSameLine(0, 0);