|
il y a 4 ans | |
---|---|---|
examples | il y a 4 ans | |
include | il y a 4 ans | |
src | il y a 4 ans | |
.gitignore | il y a 4 ans | |
LICENSE | il y a 4 ans | |
README.md | il y a 4 ans | |
rebar.config | il y a 4 ans |
Behavior3的erlang支持库
添加如下内容到rebar.config
{deps, [
...
{behavior3erl, "1.0.0"}
]}.
$ rebar3 compile
{TitleMaps, TreeMaps, TreeNodeMaps} = eBhv3:load_tree_file("example.json"),
{ok, RootID} = eBhv3:init_btree_by_title(<<"example_ai"/utf8>>, TitleMaps, TreeMaps, TreeNodeMaps),
{_BTStatus, _BTState1} = eBhv3:execute(RootID, BTState = #{}).