mirror of
https://github.com/gongxh0901/kunpocc-behaviortree.git
synced 2025-12-26 16:48:56 +00:00
添加demo
This commit is contained in:
1
bt-demo/extensions-config/.gitignore
vendored
Normal file
1
bt-demo/extensions-config/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
local/
|
||||
102
bt-demo/extensions-config/bt-editor/bt-tree1.json
Normal file
102
bt-demo/extensions-config/bt-editor/bt-tree1.json
Normal file
@@ -0,0 +1,102 @@
|
||||
{
|
||||
"name": "bt-tree1",
|
||||
"description": "",
|
||||
"nodes": [
|
||||
{
|
||||
"id": "1759472794685_3awlwerqg",
|
||||
"className": "MemSelector",
|
||||
"name": "记忆选择节点",
|
||||
"position": {
|
||||
"x": -60,
|
||||
"y": -200
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1759472800995_k3q8rx02h",
|
||||
"1759472799864_nait7thja",
|
||||
"1759472798713_ay9jxznr4",
|
||||
"1759472797759_gu3y8p1um"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "1759472797759_gu3y8p1um",
|
||||
"className": "Inverter",
|
||||
"name": "反转器",
|
||||
"position": {
|
||||
"x": 160,
|
||||
"y": -80
|
||||
},
|
||||
"parameters": {},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1759472798713_ay9jxznr4",
|
||||
"className": "LimitTime",
|
||||
"name": "时间限制器",
|
||||
"position": {
|
||||
"x": 20,
|
||||
"y": -80
|
||||
},
|
||||
"parameters": {
|
||||
"_max": 1
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1759472799864_nait7thja",
|
||||
"className": "LimitTicks",
|
||||
"name": "次数限制器",
|
||||
"position": {
|
||||
"x": -120,
|
||||
"y": -80
|
||||
},
|
||||
"parameters": {
|
||||
"_max": 1
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1759472800995_k3q8rx02h",
|
||||
"className": "Repeat",
|
||||
"name": "重复节点",
|
||||
"position": {
|
||||
"x": -260,
|
||||
"y": -80
|
||||
},
|
||||
"parameters": {
|
||||
"_max": 1
|
||||
},
|
||||
"children": []
|
||||
}
|
||||
],
|
||||
"connections": [
|
||||
{
|
||||
"id": "conn_1759472802506_ojduz0zog",
|
||||
"sourceNodeId": "1759472794685_3awlwerqg",
|
||||
"targetNodeId": "1759472800995_k3q8rx02h",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1759472803849_dk7zwd0xt",
|
||||
"sourceNodeId": "1759472794685_3awlwerqg",
|
||||
"targetNodeId": "1759472799864_nait7thja",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1759472807533_unxo9p2b0",
|
||||
"sourceNodeId": "1759472794685_3awlwerqg",
|
||||
"targetNodeId": "1759472798713_ay9jxznr4",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1759472809481_l9rcrno3b",
|
||||
"sourceNodeId": "1759472794685_3awlwerqg",
|
||||
"targetNodeId": "1759472797759_gu3y8p1um",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
}
|
||||
]
|
||||
}
|
||||
303
bt-demo/extensions-config/bt-editor/bt-tree2.json
Normal file
303
bt-demo/extensions-config/bt-editor/bt-tree2.json
Normal file
@@ -0,0 +1,303 @@
|
||||
{
|
||||
"name": "bt-tree2",
|
||||
"description": "",
|
||||
"nodes": [
|
||||
{
|
||||
"id": "1757930589538_qisfksbwz",
|
||||
"className": "MemSequence",
|
||||
"name": "记忆顺序节点",
|
||||
"position": {
|
||||
"x": -60,
|
||||
"y": -200
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758005578560_0b1kuefo0",
|
||||
"node_1757926547913_xilg11ei7",
|
||||
"1757931183149_eeuq44vs0"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "node_1757926547913_xilg11ei7",
|
||||
"className": "MemSelector",
|
||||
"name": "记忆选择节点",
|
||||
"position": {
|
||||
"x": 20,
|
||||
"y": -80
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"node_1757926550855_1hqcmi43w",
|
||||
"node_1757926555912_18vbde5fp",
|
||||
"1757930584200_cf9rez1qg",
|
||||
"1757931171553_a3afal936"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "node_1757926550855_1hqcmi43w",
|
||||
"className": "WaitTicks",
|
||||
"name": "等待次数",
|
||||
"position": {
|
||||
"x": -220,
|
||||
"y": 40
|
||||
},
|
||||
"parameters": {
|
||||
"_max": 2
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "node_1757926555912_18vbde5fp",
|
||||
"className": "WaitTime",
|
||||
"name": "等待时间",
|
||||
"position": {
|
||||
"x": -60,
|
||||
"y": 40
|
||||
},
|
||||
"parameters": {
|
||||
"_max": 1
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1757930584200_cf9rez1qg",
|
||||
"className": "Inverter",
|
||||
"name": "反转器",
|
||||
"position": {
|
||||
"x": 100,
|
||||
"y": 40
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1757930606484_dbsf9bsu2"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "1757930606484_dbsf9bsu2",
|
||||
"className": "WaitTicks",
|
||||
"name": "等待次数",
|
||||
"position": {
|
||||
"x": 100,
|
||||
"y": 160
|
||||
},
|
||||
"parameters": {
|
||||
"_max": 0
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1757931171553_a3afal936",
|
||||
"className": "WaitTicks",
|
||||
"name": "等待次数",
|
||||
"position": {
|
||||
"x": 260,
|
||||
"y": 40
|
||||
},
|
||||
"parameters": {
|
||||
"_max": 0
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1757931183149_eeuq44vs0",
|
||||
"className": "LimitTicks",
|
||||
"name": "次数限制器",
|
||||
"position": {
|
||||
"x": 420,
|
||||
"y": -80
|
||||
},
|
||||
"parameters": {
|
||||
"_max": 1
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1758005570308_u6yo43u3b",
|
||||
"className": "MemSelector",
|
||||
"name": "记忆选择节点",
|
||||
"position": {
|
||||
"x": -540,
|
||||
"y": 40
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758005574101_v4xhs2jo8"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "1758005572265_dl9lxnrki",
|
||||
"className": "MemSequence",
|
||||
"name": "记忆顺序节点",
|
||||
"position": {
|
||||
"x": -380,
|
||||
"y": 40
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758005575213_obgfw5q7p"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "1758005574101_v4xhs2jo8",
|
||||
"className": "Selector",
|
||||
"name": "选择节点",
|
||||
"position": {
|
||||
"x": -540,
|
||||
"y": 160
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758005576340_c8xf5bdhp"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "1758005575213_obgfw5q7p",
|
||||
"className": "RandomSelector",
|
||||
"name": "随机选择节点",
|
||||
"position": {
|
||||
"x": -380,
|
||||
"y": 160
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758005577367_tw24xyxop"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "1758005576340_c8xf5bdhp",
|
||||
"className": "Sequence",
|
||||
"name": "顺序节点",
|
||||
"position": {
|
||||
"x": -540,
|
||||
"y": 280
|
||||
},
|
||||
"parameters": {},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1758005577367_tw24xyxop",
|
||||
"className": "Parallel",
|
||||
"name": "并行节点",
|
||||
"position": {
|
||||
"x": -380,
|
||||
"y": 280
|
||||
},
|
||||
"parameters": {},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1758005578560_0b1kuefo0",
|
||||
"className": "ParallelAnySuccess",
|
||||
"name": "并行任意成功",
|
||||
"position": {
|
||||
"x": -460,
|
||||
"y": -80
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758005570308_u6yo43u3b",
|
||||
"1758005572265_dl9lxnrki"
|
||||
]
|
||||
}
|
||||
],
|
||||
"connections": [
|
||||
{
|
||||
"id": "conn_1757926557710_7asuzelad",
|
||||
"sourceNodeId": "node_1757926547913_xilg11ei7",
|
||||
"targetNodeId": "node_1757926555912_18vbde5fp",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1757926560138_ragkonnfy",
|
||||
"sourceNodeId": "node_1757926547913_xilg11ei7",
|
||||
"targetNodeId": "node_1757926550855_1hqcmi43w",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1757930585861_b5oi5rm01",
|
||||
"sourceNodeId": "node_1757926547913_xilg11ei7",
|
||||
"targetNodeId": "1757930584200_cf9rez1qg",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1757930591546_aul6he8br",
|
||||
"sourceNodeId": "1757930589538_qisfksbwz",
|
||||
"targetNodeId": "node_1757926547913_xilg11ei7",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1757931173864_bvoj26wca",
|
||||
"sourceNodeId": "node_1757926547913_xilg11ei7",
|
||||
"targetNodeId": "1757931171553_a3afal936",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1757931198693_i0xwbcybx",
|
||||
"sourceNodeId": "1757930589538_qisfksbwz",
|
||||
"targetNodeId": "1757931183149_eeuq44vs0",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1757931631231_ecs9ql7x6",
|
||||
"sourceNodeId": "1757930584200_cf9rez1qg",
|
||||
"targetNodeId": "1757930606484_dbsf9bsu2",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758005608025_lk647mty7",
|
||||
"sourceNodeId": "1758005570308_u6yo43u3b",
|
||||
"targetNodeId": "1758005574101_v4xhs2jo8",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758005609490_i9jyzji9o",
|
||||
"sourceNodeId": "1758005572265_dl9lxnrki",
|
||||
"targetNodeId": "1758005575213_obgfw5q7p",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758005610949_y0443s3om",
|
||||
"sourceNodeId": "1758005575213_obgfw5q7p",
|
||||
"targetNodeId": "1758005577367_tw24xyxop",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758005614225_q84l7ry4u",
|
||||
"sourceNodeId": "1758005578560_0b1kuefo0",
|
||||
"targetNodeId": "1758005570308_u6yo43u3b",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758005615813_q663l1nnl",
|
||||
"sourceNodeId": "1758005578560_0b1kuefo0",
|
||||
"targetNodeId": "1758005572265_dl9lxnrki",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758005618014_6uj500l16",
|
||||
"sourceNodeId": "1758005574101_v4xhs2jo8",
|
||||
"targetNodeId": "1758005576340_c8xf5bdhp",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758009576474_gtfkqutb1",
|
||||
"sourceNodeId": "1757930589538_qisfksbwz",
|
||||
"targetNodeId": "1758005578560_0b1kuefo0",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user