【文件属性】:
文件名称:behavior-tree:Behavior使用行为树管理React状态
文件大小:228KB
文件格式:ZIP
更新时间:2021-03-21 12:57:52
react behavior tree state-management behavior-tree
JavaScript / TypeScript实现。
:closed_book:以了解API。
注意:此软件尚处于早期开发阶段。还没准备好生产。 API可能会更改。
行为树工具包
:evergreen_tree: 框架不可知行为树实现
:atom_symbol: -Hooks和docs如何在React中使用BT
快速开始
npm install @btree/core
import { nodes } from '@btree/core'
const initialState = {
isLoggedIn : false
}
const AuthBehavior = nodes . root ( 'Auth behavior' , ( ) =>
/* Selector runs child one by one until one of them succeeds */
nodes . selector ( [
/* Sequence
【文件预览】:
behavior-tree-master
----art()
--------banner.png(22KB)
--------banner-react.png(19KB)
--------banner-core.png(18KB)
----package.json(438B)
----.eslintrc.json(550B)
----test()
--------index.test.js(61B)
----LICENSE(1KB)
----lerna.json(79B)
----.gitignore(101B)
----README.md(2KB)
----yarn.lock(408KB)
----packages()
--------core()
--------react()
----.gitattributes(66B)
----.vscode()
--------settings.json(183B)