Skip to content

Commit

Permalink
README
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolas Howard committed Mar 6, 2024
1 parent 9076a75 commit 69b3a7e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -600,6 +600,7 @@ root {

### Branch
Named root nodes can be referenced using the **branch** node. This node acts as a placeholder that will be replaced by the child node of the referenced root node. The two definitions below are synonymous.
[Example](https://nikkorn.github.io/mistreevous-visualiser/index.html?example=branch)

```
root {
Expand Down Expand Up @@ -801,6 +802,15 @@ A practical look at behaviour trees and a good example of modelling behaviour fo
## Version History
| Version | Notes |
| -------------- |:----------------------------------------------------------------------------------------|
| 4.0.0 | Added support for JSON tree defintions |
| | Added validateDefintion function to use in validating JSON/MDSL definitons |
| | Added convertMDSLToJSON function to convert existing MDSL definitions to JSON |
| | Tidied up error handling for agent and registered function invocation |
| | Action functions can now explictly return a value of State.RUNNING instead of having to return undefined |
| | Fixed issue where rejected action function promises were not handled correctly |
| | Fixed issue where registered functions were called with incorrect arguments |
| | Fixed some typings |
| | Added a BUNCH of tests |
| 3.2.0 | The 'random' function option is used for iteration and attempt selection for `repeat` and `retry` nodes respectively when minimum and maximum bounds are defined |
| 3.1.0 | Added 'random' function option to allow users to provide psuedo-random numbers for use in operations such as `lotto` node child selection and wait node duration selection when a minimum and maximum duration are defined. Wait nodes will now remain in the running state indefinitely until they are aborted if no duration is defined for them |
| 3.0.0 | Converted to Typescript |
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mistreevous",
"version": "3.2.0",
"version": "4.0.0",
"description": "A tool to build behaviour trees in JavaScript",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit 69b3a7e

Please sign in to comment.