feat(behavior-tree): add action() and condition() methods to BehaviorTreeBuilder (#408)

- Add action(implementationType, name?, config?) for custom action executors
- Add condition(implementationType, name?, config?) for custom condition executors
- Update documentation (EN and CN) with usage examples
- Add test script to package.json
This commit is contained in:
YHH
2025-12-31 14:30:31 +08:00
committed by GitHub
parent 10d0fb1d5c
commit b9ea8d14cf
5 changed files with 264 additions and 2 deletions

View File

@@ -29,7 +29,8 @@
"clean": "rimraf dist tsconfig.tsbuildinfo",
"build": "tsup",
"build:watch": "tsup --watch",
"type-check": "tsc --noEmit"
"type-check": "tsc --noEmit",
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
},
"author": "yhh",
"license": "MIT",