Files
kunpocc-behaviortree/bt-demo/extensions-config/bt-editor/bt-tree1.json

308 lines
8.9 KiB
JSON
Raw Normal View History

2025-09-17 10:25:13 +08:00
{
2025-09-23 16:42:25 +08:00
"name": "bt-tree1",
2025-09-23 18:18:20 +08:00
"description": "行为树描述\n",
2025-09-17 10:25:13 +08:00
"nodes": [
{
2025-10-03 18:56:49 +08:00
"id": "1759488688188_qejfcso50",
"className": "Selector",
"name": "选择节点",
2025-09-17 10:25:13 +08:00
"position": {
"x": -60,
2025-09-23 18:18:20 +08:00
"y": -220
2025-09-17 10:25:13 +08:00
},
"parameters": {},
"children": [
2025-10-03 18:56:49 +08:00
"1759488725107_v8u160t95",
"1759488737637_axpz9aqaz",
2025-09-23 18:18:20 +08:00
"1759488707759_2bmdm1fqt",
"1759482034741_cf3mqaqdj"
2025-10-03 18:56:49 +08:00
],
2025-09-23 18:18:20 +08:00
"alias": "根节点"
},
2025-09-17 10:25:13 +08:00
{
2025-10-03 18:56:49 +08:00
"id": "1759479318405_bptb8ltcp",
"className": "LimitTime",
"name": "时间限制器",
2025-09-17 10:25:13 +08:00
"position": {
2025-09-23 18:18:20 +08:00
"x": -60,
"y": -40
2025-09-17 10:25:13 +08:00
},
2025-10-03 18:56:49 +08:00
"parameters": {
"_max": 2
},
"children": [
"1758089736854_t55n54hkh"
]
2025-09-17 10:25:13 +08:00
},
{
2025-10-03 18:56:49 +08:00
"id": "1759479295671_jflit2ek8",
2025-09-17 10:25:13 +08:00
"className": "LimitTime",
"name": "时间限制器",
"position": {
2025-09-23 18:18:20 +08:00
"x": -340,
"y": -40
2025-10-03 18:56:49 +08:00
},
"parameters": {
"_max": 2
},
"children": [
"1758089659917_vjumiu9hy"
]
},
{
"id": "1758089659917_vjumiu9hy",
"className": "BTAnimation",
"name": "播放动画",
"position": {
2025-09-23 18:18:20 +08:00
"x": -340,
"y": 40
2025-09-17 10:25:13 +08:00
},
"parameters": {
2025-10-03 18:56:49 +08:00
"_name": "walk",
"_loop": true
2025-09-17 10:25:13 +08:00
},
"children": []
},
{
2025-10-03 18:56:49 +08:00
"id": "1758089736854_t55n54hkh",
"className": "BTAnimation",
"name": "播放动画",
2025-09-17 10:25:13 +08:00
"position": {
2025-09-23 18:18:20 +08:00
"x": -60,
"y": 40
2025-09-17 10:25:13 +08:00
},
"parameters": {
2025-10-03 18:56:49 +08:00
"_name": "run",
"_loop": true
2025-09-17 10:25:13 +08:00
},
2025-09-23 18:18:20 +08:00
"children": [],
"alias": "奔跑动画"
2025-09-17 10:25:13 +08:00
},
{
2025-10-03 18:56:49 +08:00
"id": "1758089757615_dp9tw9ka1",
"className": "BTAnimation",
"name": "播放动画",
2025-09-17 10:25:13 +08:00
"position": {
2025-09-23 18:18:20 +08:00
"x": 220,
"y": -60
2025-09-17 10:25:13 +08:00
},
"parameters": {
2025-10-03 18:56:49 +08:00
"_name": "jump",
"_loop": false
2025-09-17 10:25:13 +08:00
},
"children": []
2025-10-03 18:56:49 +08:00
},
{
"id": "1759478407706_w30m4btux",
"className": "BTAnimation",
"name": "播放动画",
"position": {
2025-09-23 18:18:20 +08:00
"x": 360,
"y": -60
2025-10-03 18:56:49 +08:00
},
"parameters": {
"_name": "idle",
"_loop": true
},
"children": []
},
{
"id": "1759481172259_xou25wj2n",
"className": "BTConditionRandom",
"name": "随机条件节点",
"position": {
2025-09-23 18:18:20 +08:00
"x": -480,
"y": -60
2025-10-03 18:56:49 +08:00
},
"parameters": {
"_value": 0.3
},
"children": []
},
{
"id": "1759481282875_5orqavi5y",
"className": "BTConditionRandom",
"name": "随机条件节点",
"position": {
2025-09-23 18:18:20 +08:00
"x": -200,
"y": -60
2025-10-03 18:56:49 +08:00
},
"parameters": {
"_value": 0.4
},
"children": []
},
{
"id": "1759481307863_ja6q4q9bz",
"className": "BTConditionRandom",
"name": "随机条件节点",
"position": {
2025-09-23 18:18:20 +08:00
"x": 80,
"y": -60
2025-10-03 18:56:49 +08:00
},
"parameters": {
"_value": 0.3
},
"children": []
},
{
"id": "1759482034741_cf3mqaqdj",
"className": "LimitTime",
"name": "时间限制器",
"position": {
2025-09-23 18:18:20 +08:00
"x": 360,
"y": -140
2025-10-03 18:56:49 +08:00
},
"parameters": {
"_max": 2
2025-10-03 18:56:49 +08:00
},
"children": [
"1759478407706_w30m4btux"
],
"alias": "待机动画"
},
{
"id": "1759488707759_2bmdm1fqt",
"className": "Sequence",
"name": "顺序节点",
"position": {
2025-09-23 18:18:20 +08:00
"x": -400,
"y": -120
2025-10-03 18:56:49 +08:00
},
"parameters": {},
"children": [
"1759481172259_xou25wj2n",
"1759479295671_jflit2ek8"
],
2025-09-23 18:18:20 +08:00
"alias": "行走顺序节点"
2025-10-03 18:56:49 +08:00
},
{
"id": "1759488725107_v8u160t95",
"className": "Sequence",
"name": "顺序节点",
"position": {
2025-09-23 18:18:20 +08:00
"x": -120,
"y": -120
2025-10-03 18:56:49 +08:00
},
"parameters": {},
"children": [
"1759481282875_5orqavi5y",
"1759479318405_bptb8ltcp"
],
2025-09-23 18:18:20 +08:00
"alias": "奔跑顺序节点"
2025-10-03 18:56:49 +08:00
},
{
"id": "1759488737637_axpz9aqaz",
"className": "Sequence",
"name": "顺序节点",
"position": {
2025-09-23 18:18:20 +08:00
"x": 160,
"y": -120
2025-10-03 18:56:49 +08:00
},
"parameters": {},
"children": [
"1759481307863_ja6q4q9bz",
"1758089757615_dp9tw9ka1"
],
2025-09-23 18:18:20 +08:00
"alias": "跳跃顺序节点"
2025-09-17 10:25:13 +08:00
}
],
"connections": [
{
2025-10-03 18:56:49 +08:00
"id": "conn_1759479306749_wnwlz1638",
"sourceNodeId": "1759479295671_jflit2ek8",
"targetNodeId": "1758089659917_vjumiu9hy",
"sourcePointType": "child",
"targetPointType": "parent"
},
{
"id": "conn_1759479325803_ln42r7198",
"sourceNodeId": "1759479318405_bptb8ltcp",
"targetNodeId": "1758089736854_t55n54hkh",
"sourcePointType": "child",
"targetPointType": "parent"
},
{
"id": "conn_1759482041141_ok8gnqp0o",
"sourceNodeId": "1759482034741_cf3mqaqdj",
"targetNodeId": "1759478407706_w30m4btux",
"sourcePointType": "child",
"targetPointType": "parent"
},
{
"id": "conn_1759488698126_dou7vxvo0",
"sourceNodeId": "1759488688188_qejfcso50",
"targetNodeId": "1759482034741_cf3mqaqdj",
"sourcePointType": "child",
"targetPointType": "parent"
},
{
"id": "conn_1759488712210_gn0eom3zv",
"sourceNodeId": "1759488688188_qejfcso50",
"targetNodeId": "1759488707759_2bmdm1fqt",
"sourcePointType": "child",
"targetPointType": "parent"
},
{
"id": "conn_1759488719553_mag45k9dx",
"sourceNodeId": "1759488707759_2bmdm1fqt",
"targetNodeId": "1759481172259_xou25wj2n",
"sourcePointType": "child",
"targetPointType": "parent"
},
{
"id": "conn_1759488720799_ksfwij12z",
"sourceNodeId": "1759488707759_2bmdm1fqt",
"targetNodeId": "1759479295671_jflit2ek8",
"sourcePointType": "child",
"targetPointType": "parent"
},
{
"id": "conn_1759488728262_shaymep9m",
"sourceNodeId": "1759488688188_qejfcso50",
"targetNodeId": "1759488725107_v8u160t95",
"sourcePointType": "child",
"targetPointType": "parent"
},
{
"id": "conn_1759488732106_yg23eiw3l",
"sourceNodeId": "1759488725107_v8u160t95",
"targetNodeId": "1759481282875_5orqavi5y",
"sourcePointType": "child",
"targetPointType": "parent"
},
{
"id": "conn_1759488733833_08kf67zp1",
"sourceNodeId": "1759488725107_v8u160t95",
"targetNodeId": "1759479318405_bptb8ltcp",
2025-09-17 10:25:13 +08:00
"sourcePointType": "child",
"targetPointType": "parent"
},
{
2025-10-03 18:56:49 +08:00
"id": "conn_1759488741448_2in7yz3v7",
"sourceNodeId": "1759488688188_qejfcso50",
"targetNodeId": "1759488737637_axpz9aqaz",
2025-09-17 10:25:13 +08:00
"sourcePointType": "child",
"targetPointType": "parent"
},
{
2025-10-03 18:56:49 +08:00
"id": "conn_1759488742689_15z7fchvc",
"sourceNodeId": "1759488737637_axpz9aqaz",
"targetNodeId": "1759481307863_ja6q4q9bz",
2025-09-17 10:25:13 +08:00
"sourcePointType": "child",
"targetPointType": "parent"
},
{
2025-10-03 18:56:49 +08:00
"id": "conn_1759488745870_5rllaj2oe",
"sourceNodeId": "1759488737637_axpz9aqaz",
"targetNodeId": "1758089757615_dp9tw9ka1",
2025-09-17 10:25:13 +08:00
"sourcePointType": "child",
"targetPointType": "parent"
}
2025-10-06 11:15:33 +08:00
],
2025-09-23 18:18:20 +08:00
"canvasScale": 1.25,
2025-10-06 11:15:33 +08:00
"canvasOffset": {
2025-09-23 18:18:20 +08:00
"x": 723,
"y": 600.875
2025-10-06 11:15:33 +08:00
}
2025-09-17 10:25:13 +08:00
}