Files
behavior3editor/sample/workdir/monster.json
T
codetypes 2e5c08b2ad reimplement the editor use lastest antd and other libs, feature of this commit:
1. file manger
2. highlight for click input or output
3. selector of subtress
4. autocomplete for input or output
2024-04-17 10:35:51 +08:00

69 lines
1.3 KiB
JSON

{
"name": "monster",
"root": {
"id": 1,
"name": "Sequence",
"desc": "怪物测试AI",
"args": {},
"children": [
{
"id": 2,
"name": "Sequence",
"desc": "攻击",
"args": {},
"children": [
{
"id": 3,
"name": "GetHp",
"args": {},
"output": [
"hp"
],
"children": [
{
"id": 4,
"name": "Sequence",
"desc": "新建行为树",
"path": "workdir/subtree2.json"
}
]
},
{
"id": 7,
"name": "Cmp",
"args": {
"gt": 50,
"value": "hp"
},
"input": [
""
]
},
{
"id": 8,
"name": "TestB3",
"desc": "攻击",
"args": {
"str": "Attack!"
}
},
{
"id": 9,
"name": "Sequence",
"desc": "新建行为树",
"path": "workdir/subtree1.json"
}
]
},
{
"id": 12,
"name": "Log",
"desc": "逃跑",
"args": {
"str": "Run!"
}
}
]
},
"desc": "怪物测试AI"
}