mirror of
https://github.com/gongxh0901/kunpocc-behaviortree.git
synced 2025-12-26 16:48:56 +00:00
行为树详细介绍的文档
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"ver": "1.2.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "de9afb2e-952c-4e0b-96df-cc676989bed9",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"ver": "1.2.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "d5a536b5-db1b-42ac-8654-5f6a81341c3a",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"ver": "1.2.0",
|
||||
"importer": "directory",
|
||||
"imported": true,
|
||||
"uuid": "6b9b2da1-08c2-4c40-ab35-e7cb5bb30872",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
||||
@@ -1,147 +0,0 @@
|
||||
[
|
||||
{
|
||||
"__type__": "cc.Prefab",
|
||||
"_name": "spineboy",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_native": "",
|
||||
"data": {
|
||||
"__id__": 1
|
||||
},
|
||||
"optimizationPolicy": 0,
|
||||
"persistent": false
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "spineboy",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_parent": null,
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 2
|
||||
},
|
||||
{
|
||||
"__id__": 4
|
||||
}
|
||||
],
|
||||
"_prefab": {
|
||||
"__id__": 6
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": -1000
|
||||
},
|
||||
"_lrot": {
|
||||
"__type__": "cc.Quat",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
},
|
||||
"_lscale": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0.3,
|
||||
"y": 0.3,
|
||||
"z": 1
|
||||
},
|
||||
"_mobility": 0,
|
||||
"_layer": 1073741824,
|
||||
"_euler": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.UITransform",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 3
|
||||
},
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 419.8399963378906,
|
||||
"height": 686.0800170898438
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.45412539378136013,
|
||||
"y": 0.011660447470739235
|
||||
},
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "dfVeZdqm9E15k7OBD615QP"
|
||||
},
|
||||
{
|
||||
"__type__": "sp.Skeleton",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 1
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": {
|
||||
"__id__": 5
|
||||
},
|
||||
"_customMaterial": null,
|
||||
"_srcBlendFactor": 2,
|
||||
"_dstBlendFactor": 4,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_skeletonData": {
|
||||
"__uuid__": "39a7d8cd-533a-479a-b909-9575bf720338",
|
||||
"__expectedType__": "sp.SkeletonData"
|
||||
},
|
||||
"defaultSkin": "default",
|
||||
"defaultAnimation": "jump",
|
||||
"_premultipliedAlpha": true,
|
||||
"_timeScale": 1,
|
||||
"_preCacheMode": 0,
|
||||
"_cacheMode": 0,
|
||||
"_sockets": [],
|
||||
"_useTint": false,
|
||||
"_debugMesh": false,
|
||||
"_debugBones": false,
|
||||
"_debugSlots": false,
|
||||
"_enableBatch": false,
|
||||
"loop": true,
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
"__type__": "cc.CompPrefabInfo",
|
||||
"fileId": "deHPJ9jpdJZq/2PP1E2haI"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 1
|
||||
},
|
||||
"asset": {
|
||||
"__id__": 0
|
||||
},
|
||||
"fileId": "fcg4LyhU9MpITaQy7lW8Ru",
|
||||
"instance": null,
|
||||
"targetOverrides": null
|
||||
}
|
||||
]
|
||||
@@ -1,13 +0,0 @@
|
||||
{
|
||||
"ver": "1.1.50",
|
||||
"importer": "prefab",
|
||||
"imported": true,
|
||||
"uuid": "610db270-416d-42a9-a228-67b0fe1beee4",
|
||||
"files": [
|
||||
".json"
|
||||
],
|
||||
"subMetas": {},
|
||||
"userData": {
|
||||
"syncNodeName": "spineboy"
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 824 KiB After Width: | Height: | Size: 824 KiB |
@@ -23,7 +23,7 @@
|
||||
"_active": true,
|
||||
"_components": [],
|
||||
"_prefab": {
|
||||
"__id__": 22
|
||||
"__id__": 14
|
||||
},
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
@@ -54,7 +54,7 @@
|
||||
},
|
||||
"autoReleaseAssets": false,
|
||||
"_globals": {
|
||||
"__id__": 25
|
||||
"__id__": 17
|
||||
},
|
||||
"_id": "bef93422-3e63-4c0f-a5cf-d926e7360673"
|
||||
},
|
||||
@@ -71,22 +71,22 @@
|
||||
"__id__": 3
|
||||
},
|
||||
{
|
||||
"__id__": 6
|
||||
"__id__": 9
|
||||
},
|
||||
{
|
||||
"__id__": 8
|
||||
"__id__": 7
|
||||
}
|
||||
],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 19
|
||||
"__id__": 11
|
||||
},
|
||||
{
|
||||
"__id__": 20
|
||||
"__id__": 12
|
||||
},
|
||||
{
|
||||
"__id__": 21
|
||||
"__id__": 13
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
@@ -199,13 +199,121 @@
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": null,
|
||||
"skeleton": null,
|
||||
"btConfig": {
|
||||
"__uuid__": "c8aeef5d-6d0e-4093-848e-7d8f1ca30261",
|
||||
"__expectedType__": "cc.JsonAsset"
|
||||
"skeleton": {
|
||||
"__id__": 6
|
||||
},
|
||||
"btConfig": null,
|
||||
"_id": "69LhmWaZRIUpmYvdiN82Ha"
|
||||
},
|
||||
{
|
||||
"__type__": "sp.Skeleton",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 7
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": null,
|
||||
"_customMaterial": null,
|
||||
"_srcBlendFactor": 2,
|
||||
"_dstBlendFactor": 4,
|
||||
"_color": {
|
||||
"__type__": "cc.Color",
|
||||
"r": 255,
|
||||
"g": 255,
|
||||
"b": 255,
|
||||
"a": 255
|
||||
},
|
||||
"_skeletonData": {
|
||||
"__uuid__": "39a7d8cd-533a-479a-b909-9575bf720338",
|
||||
"__expectedType__": "sp.SkeletonData"
|
||||
},
|
||||
"defaultSkin": "default",
|
||||
"defaultAnimation": "idle",
|
||||
"_premultipliedAlpha": true,
|
||||
"_timeScale": 1,
|
||||
"_preCacheMode": 0,
|
||||
"_cacheMode": 0,
|
||||
"_sockets": [],
|
||||
"_useTint": false,
|
||||
"_debugMesh": false,
|
||||
"_debugBones": false,
|
||||
"_debugSlots": false,
|
||||
"_enableBatch": false,
|
||||
"loop": false,
|
||||
"_id": "e0SlYqh/pPzaLrAWsV78xj"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "spineboy",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"_parent": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_children": [],
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 8
|
||||
},
|
||||
{
|
||||
"__id__": 6
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
"_lpos": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": -151.948,
|
||||
"z": 0
|
||||
},
|
||||
"_lrot": {
|
||||
"__type__": "cc.Quat",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
},
|
||||
"_lscale": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0.5,
|
||||
"y": 0.5,
|
||||
"z": 1
|
||||
},
|
||||
"_mobility": 0,
|
||||
"_layer": 1073741824,
|
||||
"_euler": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
},
|
||||
"_id": "a62KjBSsBMSpCYMjsx0oxG"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.UITransform",
|
||||
"_name": "",
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 7
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": null,
|
||||
"_contentSize": {
|
||||
"__type__": "cc.Size",
|
||||
"width": 419.8399963378906,
|
||||
"height": 686.0800170898438
|
||||
},
|
||||
"_anchorPoint": {
|
||||
"__type__": "cc.Vec2",
|
||||
"x": 0.45412539378136013,
|
||||
"y": 0.011660447470739235
|
||||
},
|
||||
"_id": "c9XaAZS6pNILxWx4jmSYKE"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_name": "Camera",
|
||||
@@ -218,7 +326,7 @@
|
||||
"_active": true,
|
||||
"_components": [
|
||||
{
|
||||
"__id__": 7
|
||||
"__id__": 10
|
||||
}
|
||||
],
|
||||
"_prefab": null,
|
||||
@@ -257,7 +365,7 @@
|
||||
"_objFlags": 0,
|
||||
"__editorExtras__": {},
|
||||
"node": {
|
||||
"__id__": 6
|
||||
"__id__": 9
|
||||
},
|
||||
"_enabled": true,
|
||||
"__prefab": null,
|
||||
@@ -297,149 +405,6 @@
|
||||
"_trackingType": 0,
|
||||
"_id": "63WIch3o5BEYRlXzTT0oWc"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.Node",
|
||||
"_objFlags": 0,
|
||||
"_parent": {
|
||||
"__id__": 2
|
||||
},
|
||||
"_prefab": {
|
||||
"__id__": 9
|
||||
},
|
||||
"__editorExtras__": {}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInfo",
|
||||
"root": {
|
||||
"__id__": 8
|
||||
},
|
||||
"asset": {
|
||||
"__uuid__": "610db270-416d-42a9-a228-67b0fe1beee4",
|
||||
"__expectedType__": "cc.Prefab"
|
||||
},
|
||||
"fileId": "fcg4LyhU9MpITaQy7lW8Ru",
|
||||
"instance": {
|
||||
"__id__": 10
|
||||
},
|
||||
"targetOverrides": null,
|
||||
"nestedPrefabInstanceRoots": null
|
||||
},
|
||||
{
|
||||
"__type__": "cc.PrefabInstance",
|
||||
"fileId": "2eYzhZYv5Mi5OETcYel3W3",
|
||||
"prefabRootNode": null,
|
||||
"mountedChildren": [],
|
||||
"mountedComponents": [],
|
||||
"propertyOverrides": [
|
||||
{
|
||||
"__id__": 11
|
||||
},
|
||||
{
|
||||
"__id__": 13
|
||||
},
|
||||
{
|
||||
"__id__": 14
|
||||
},
|
||||
{
|
||||
"__id__": 15
|
||||
},
|
||||
{
|
||||
"__id__": 16
|
||||
},
|
||||
{
|
||||
"__id__": 18
|
||||
}
|
||||
],
|
||||
"removedComponents": []
|
||||
},
|
||||
{
|
||||
"__type__": "CCPropertyOverrideInfo",
|
||||
"targetInfo": {
|
||||
"__id__": 12
|
||||
},
|
||||
"propertyPath": [
|
||||
"_lpos"
|
||||
],
|
||||
"value": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "cc.TargetInfo",
|
||||
"localID": [
|
||||
"fcg4LyhU9MpITaQy7lW8Ru"
|
||||
]
|
||||
},
|
||||
{
|
||||
"__type__": "CCPropertyOverrideInfo",
|
||||
"targetInfo": {
|
||||
"__id__": 12
|
||||
},
|
||||
"propertyPath": [
|
||||
"_name"
|
||||
],
|
||||
"value": "spineboy"
|
||||
},
|
||||
{
|
||||
"__type__": "CCPropertyOverrideInfo",
|
||||
"targetInfo": {
|
||||
"__id__": 12
|
||||
},
|
||||
"propertyPath": [
|
||||
"_lrot"
|
||||
],
|
||||
"value": {
|
||||
"__type__": "cc.Quat",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0,
|
||||
"w": 1
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "CCPropertyOverrideInfo",
|
||||
"targetInfo": {
|
||||
"__id__": 12
|
||||
},
|
||||
"propertyPath": [
|
||||
"_euler"
|
||||
],
|
||||
"value": {
|
||||
"__type__": "cc.Vec3",
|
||||
"x": 0,
|
||||
"y": 0,
|
||||
"z": 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"__type__": "CCPropertyOverrideInfo",
|
||||
"targetInfo": {
|
||||
"__id__": 17
|
||||
},
|
||||
"propertyPath": [
|
||||
"defaultAnimation"
|
||||
],
|
||||
"value": "idle"
|
||||
},
|
||||
{
|
||||
"__type__": "cc.TargetInfo",
|
||||
"localID": [
|
||||
"deHPJ9jpdJZq/2PP1E2haI"
|
||||
]
|
||||
},
|
||||
{
|
||||
"__type__": "CCPropertyOverrideInfo",
|
||||
"targetInfo": {
|
||||
"__id__": 17
|
||||
},
|
||||
"propertyPath": [
|
||||
"_premultipliedAlpha"
|
||||
],
|
||||
"value": true
|
||||
},
|
||||
{
|
||||
"__type__": "cc.UITransform",
|
||||
"_name": "",
|
||||
@@ -473,7 +438,7 @@
|
||||
"_enabled": true,
|
||||
"__prefab": null,
|
||||
"_cameraComponent": {
|
||||
"__id__": 7
|
||||
"__id__": 10
|
||||
},
|
||||
"_alignCanvasWithScreen": true,
|
||||
"_id": "12O/ljcVlEqLmVm3U2gEOQ"
|
||||
@@ -516,12 +481,7 @@
|
||||
"instance": null,
|
||||
"targetOverrides": [
|
||||
{
|
||||
"__id__": 23
|
||||
}
|
||||
],
|
||||
"nestedPrefabInstanceRoots": [
|
||||
{
|
||||
"__id__": 8
|
||||
"__id__": 15
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -534,11 +494,9 @@
|
||||
"propertyPath": [
|
||||
"skeleton"
|
||||
],
|
||||
"target": {
|
||||
"__id__": 8
|
||||
},
|
||||
"target": null,
|
||||
"targetInfo": {
|
||||
"__id__": 24
|
||||
"__id__": 16
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -550,28 +508,28 @@
|
||||
{
|
||||
"__type__": "cc.SceneGlobals",
|
||||
"ambient": {
|
||||
"__id__": 26
|
||||
"__id__": 18
|
||||
},
|
||||
"shadows": {
|
||||
"__id__": 27
|
||||
"__id__": 19
|
||||
},
|
||||
"_skybox": {
|
||||
"__id__": 28
|
||||
"__id__": 20
|
||||
},
|
||||
"fog": {
|
||||
"__id__": 29
|
||||
"__id__": 21
|
||||
},
|
||||
"octree": {
|
||||
"__id__": 30
|
||||
"__id__": 22
|
||||
},
|
||||
"skin": {
|
||||
"__id__": 31
|
||||
"__id__": 23
|
||||
},
|
||||
"lightProbeInfo": {
|
||||
"__id__": 32
|
||||
"__id__": 24
|
||||
},
|
||||
"postSettings": {
|
||||
"__id__": 33
|
||||
"__id__": 25
|
||||
},
|
||||
"bakedWithStationaryMainLight": false,
|
||||
"bakedWithHighpLightmap": false
|
||||
|
||||
@@ -47,7 +47,7 @@ export class BTAnimation extends BT.LeafNode {
|
||||
}
|
||||
|
||||
/** 条件节点 */
|
||||
@BT.ClassCondition("BTConditionRandom", { name: "随机条件节点", group: "基础条件节点", desc: "随机0-1的值,大于设置值返回成功,否则返回失败" })
|
||||
@BT.ClassCondition("BTConditionRandom", { name: "随机条件节点", group: "基础条件节点", desc: "随机0-1的值,小于设置值返回成功,否则返回失败" })
|
||||
export class BTConditionRandom extends BT.Condition {
|
||||
|
||||
@BT.prop({ type: BT.ParamType.float, description: "值", defaultValue: 0.5 })
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
interface Math {
|
||||
/**
|
||||
* 限制值
|
||||
* @param value 当前值
|
||||
* @param min 最小值
|
||||
* @param max 最大值
|
||||
*/
|
||||
clampf(value: number, min: number, max: number): number;
|
||||
|
||||
/**
|
||||
* 随机从 min 到 max 的整数(包含min和max)
|
||||
* @param min
|
||||
* @param max
|
||||
*/
|
||||
rand(min: number, max: number): number;
|
||||
|
||||
/**
|
||||
* 随机从 min 到 max的数
|
||||
* @param min
|
||||
* @param max
|
||||
*/
|
||||
randRange(min: number, max: number): number;
|
||||
|
||||
/**
|
||||
* 角度转弧度
|
||||
* @param angle 角度
|
||||
*/
|
||||
rad(angle: number): number;
|
||||
|
||||
/**
|
||||
* 弧度转角度
|
||||
* @param radian 弧度
|
||||
*/
|
||||
deg(radian: number): number;
|
||||
|
||||
/**
|
||||
* 数值平滑渐变
|
||||
* @param num1
|
||||
* @param num2
|
||||
* @param elapsedTime
|
||||
* @param responseTime
|
||||
*/
|
||||
smooth(num1: number, num2: number, elapsedTime: number, responseTime: number): number;
|
||||
}
|
||||
|
||||
Math.clampf = function (value: number, min: number, max: number): number {
|
||||
return Math.min(Math.max(value, min), max);
|
||||
};
|
||||
|
||||
Math.rand = function (min: number, max: number): number {
|
||||
return Math.floor(Math.random() * (max - min + 1) + min);
|
||||
};
|
||||
|
||||
Math.randRange = function (min: number, max: number): number {
|
||||
return Math.random() * (max - min) + min;
|
||||
};
|
||||
|
||||
Math.rad = function (angle: number): number {
|
||||
return (angle * Math.PI) / 180;
|
||||
};
|
||||
|
||||
Math.deg = function (radian: number): number {
|
||||
return (radian * 180) / Math.PI;
|
||||
};
|
||||
|
||||
Math.smooth = function (num1: number, num2: number, elapsedTime: number, responseTime: number): number {
|
||||
let out: number = num1;
|
||||
if (elapsedTime > 0) {
|
||||
out = out + (num2 - num1) * (elapsedTime / (elapsedTime + responseTime));
|
||||
}
|
||||
return out;
|
||||
};
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
{
|
||||
"ver": "4.0.24",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "a336ce23-5d73-4280-b2e9-084389a3877e",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "bt-tree1",
|
||||
"description": "这是一个描述",
|
||||
"description": "行为树描述\n",
|
||||
"nodes": [
|
||||
{
|
||||
"id": "1759488688188_qejfcso50",
|
||||
@@ -8,47 +8,24 @@
|
||||
"name": "选择节点",
|
||||
"position": {
|
||||
"x": -60,
|
||||
"y": -200
|
||||
"y": -220
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1759488707759_2bmdm1fqt",
|
||||
"1759488725107_v8u160t95",
|
||||
"1759488737637_axpz9aqaz",
|
||||
"1759482034741_cf3mqaqdj",
|
||||
"1758190139303_t5o7vv3ak"
|
||||
"1759488707759_2bmdm1fqt",
|
||||
"1759482034741_cf3mqaqdj"
|
||||
],
|
||||
"alias": "根选择节点"
|
||||
},
|
||||
{
|
||||
"id": "1758190139303_t5o7vv3ak",
|
||||
"className": "BTTestNode",
|
||||
"name": "嵌套数据测试节点",
|
||||
"position": {
|
||||
"x": 440,
|
||||
"y": -80
|
||||
},
|
||||
"parameters": {
|
||||
"position": {
|
||||
"x": 10,
|
||||
"y": 20
|
||||
},
|
||||
"configs": [
|
||||
{
|
||||
"name": "hahaa",
|
||||
"value": 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"children": []
|
||||
"alias": "根节点"
|
||||
},
|
||||
{
|
||||
"id": "1759479318405_bptb8ltcp",
|
||||
"className": "LimitTime",
|
||||
"name": "时间限制器",
|
||||
"position": {
|
||||
"x": -120,
|
||||
"y": 40
|
||||
"x": -60,
|
||||
"y": -40
|
||||
},
|
||||
"parameters": {
|
||||
"_max": 2
|
||||
@@ -62,8 +39,8 @@
|
||||
"className": "LimitTime",
|
||||
"name": "时间限制器",
|
||||
"position": {
|
||||
"x": -400,
|
||||
"y": 40
|
||||
"x": -340,
|
||||
"y": -40
|
||||
},
|
||||
"parameters": {
|
||||
"_max": 2
|
||||
@@ -77,8 +54,8 @@
|
||||
"className": "BTAnimation",
|
||||
"name": "播放动画",
|
||||
"position": {
|
||||
"x": -400,
|
||||
"y": 160
|
||||
"x": -340,
|
||||
"y": 40
|
||||
},
|
||||
"parameters": {
|
||||
"_name": "walk",
|
||||
@@ -91,22 +68,23 @@
|
||||
"className": "BTAnimation",
|
||||
"name": "播放动画",
|
||||
"position": {
|
||||
"x": -120,
|
||||
"y": 160
|
||||
"x": -60,
|
||||
"y": 40
|
||||
},
|
||||
"parameters": {
|
||||
"_name": "run",
|
||||
"_loop": true
|
||||
},
|
||||
"children": []
|
||||
"children": [],
|
||||
"alias": "奔跑动画"
|
||||
},
|
||||
{
|
||||
"id": "1758089757615_dp9tw9ka1",
|
||||
"className": "BTAnimation",
|
||||
"name": "播放动画",
|
||||
"position": {
|
||||
"x": 160,
|
||||
"y": 40
|
||||
"x": 220,
|
||||
"y": -60
|
||||
},
|
||||
"parameters": {
|
||||
"_name": "jump",
|
||||
@@ -119,8 +97,8 @@
|
||||
"className": "BTAnimation",
|
||||
"name": "播放动画",
|
||||
"position": {
|
||||
"x": 300,
|
||||
"y": 40
|
||||
"x": 360,
|
||||
"y": -60
|
||||
},
|
||||
"parameters": {
|
||||
"_name": "idle",
|
||||
@@ -133,8 +111,8 @@
|
||||
"className": "BTConditionRandom",
|
||||
"name": "随机条件节点",
|
||||
"position": {
|
||||
"x": -540,
|
||||
"y": 40
|
||||
"x": -480,
|
||||
"y": -60
|
||||
},
|
||||
"parameters": {
|
||||
"_value": 0.3
|
||||
@@ -146,8 +124,8 @@
|
||||
"className": "BTConditionRandom",
|
||||
"name": "随机条件节点",
|
||||
"position": {
|
||||
"x": -260,
|
||||
"y": 40
|
||||
"x": -200,
|
||||
"y": -60
|
||||
},
|
||||
"parameters": {
|
||||
"_value": 0.4
|
||||
@@ -159,8 +137,8 @@
|
||||
"className": "BTConditionRandom",
|
||||
"name": "随机条件节点",
|
||||
"position": {
|
||||
"x": 20,
|
||||
"y": 40
|
||||
"x": 80,
|
||||
"y": -60
|
||||
},
|
||||
"parameters": {
|
||||
"_value": 0.3
|
||||
@@ -172,8 +150,8 @@
|
||||
"className": "LimitTime",
|
||||
"name": "时间限制器",
|
||||
"position": {
|
||||
"x": 300,
|
||||
"y": -80
|
||||
"x": 360,
|
||||
"y": -140
|
||||
},
|
||||
"parameters": {
|
||||
"_max": 2
|
||||
@@ -188,45 +166,45 @@
|
||||
"className": "Sequence",
|
||||
"name": "顺序节点",
|
||||
"position": {
|
||||
"x": -480,
|
||||
"y": -80
|
||||
"x": -400,
|
||||
"y": -120
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1759481172259_xou25wj2n",
|
||||
"1759479295671_jflit2ek8"
|
||||
],
|
||||
"alias": "行走动画分支"
|
||||
"alias": "行走顺序节点"
|
||||
},
|
||||
{
|
||||
"id": "1759488725107_v8u160t95",
|
||||
"className": "Sequence",
|
||||
"name": "顺序节点",
|
||||
"position": {
|
||||
"x": -200,
|
||||
"y": -80
|
||||
"x": -120,
|
||||
"y": -120
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1759481282875_5orqavi5y",
|
||||
"1759479318405_bptb8ltcp"
|
||||
],
|
||||
"alias": "奔跑动画"
|
||||
"alias": "奔跑顺序节点"
|
||||
},
|
||||
{
|
||||
"id": "1759488737637_axpz9aqaz",
|
||||
"className": "Sequence",
|
||||
"name": "顺序节点",
|
||||
"position": {
|
||||
"x": 80,
|
||||
"y": -80
|
||||
"x": 160,
|
||||
"y": -120
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1759481307863_ja6q4q9bz",
|
||||
"1758089757615_dp9tw9ka1"
|
||||
],
|
||||
"alias": "跳跃动画分支"
|
||||
"alias": "跳跃顺序节点"
|
||||
}
|
||||
],
|
||||
"connections": [
|
||||
@@ -320,18 +298,11 @@
|
||||
"targetNodeId": "1758089757615_dp9tw9ka1",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758204108181_90iaioyvg",
|
||||
"sourceNodeId": "1759488688188_qejfcso50",
|
||||
"targetNodeId": "1758190139303_t5o7vv3ak",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
}
|
||||
],
|
||||
"canvasScale": 1.0006385665653545,
|
||||
"canvasScale": 1.25,
|
||||
"canvasOffset": {
|
||||
"x": 584.9936143343465,
|
||||
"y": 498.99074078480237
|
||||
"x": 723,
|
||||
"y": 600.875
|
||||
}
|
||||
}
|
||||
@@ -3,66 +3,193 @@
|
||||
"description": "",
|
||||
"nodes": [
|
||||
{
|
||||
"id": "1758206972710_bhxebhy7o",
|
||||
"className": "Sequence",
|
||||
"name": "顺序节点",
|
||||
"position": {
|
||||
"x": 80,
|
||||
"y": -320
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758090634327_mf36nwkdt"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "1758090634327_mf36nwkdt",
|
||||
"id": "1758972524240_4ockrv5jo",
|
||||
"className": "Selector",
|
||||
"name": "选择节点",
|
||||
"position": {
|
||||
"x": -80,
|
||||
"x": -60,
|
||||
"y": -220
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758206988178_55b7kk5va"
|
||||
],
|
||||
"alias": "是的发放是的发放"
|
||||
"1758972608716_o2uai5dp8",
|
||||
"1758972550481_0iq7imml9",
|
||||
"1758972698829_wxfe7ut33"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "1758206988178_55b7kk5va",
|
||||
"id": "1758889921667_sjwxkfjs7",
|
||||
"className": "BTAnimation",
|
||||
"name": "播放动画",
|
||||
"position": {
|
||||
"x": -20,
|
||||
"y": -40
|
||||
"x": 80,
|
||||
"y": -60
|
||||
},
|
||||
"parameters": {
|
||||
"_name": "",
|
||||
"_name": "jump",
|
||||
"_loop": false
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1758889925476_dcyjc7a4o",
|
||||
"className": "BTAnimation",
|
||||
"name": "播放动画",
|
||||
"position": {
|
||||
"x": 220,
|
||||
"y": -60
|
||||
},
|
||||
"parameters": {
|
||||
"_name": "idle",
|
||||
"_loop": true
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1758972550481_0iq7imml9",
|
||||
"className": "Sequence",
|
||||
"name": "顺序节点",
|
||||
"position": {
|
||||
"x": 20,
|
||||
"y": -120
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758972573109_fxt7magur",
|
||||
"1758889921667_sjwxkfjs7"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "1758972573109_fxt7magur",
|
||||
"className": "BTConditionRandom",
|
||||
"name": "随机条件节点",
|
||||
"position": {
|
||||
"x": -60,
|
||||
"y": -60
|
||||
},
|
||||
"parameters": {
|
||||
"_value": 0.5
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1758972608716_o2uai5dp8",
|
||||
"className": "Sequence",
|
||||
"name": "顺序节点",
|
||||
"position": {
|
||||
"x": -260,
|
||||
"y": -120
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758972608716_ivq9o10bi",
|
||||
"1758972608716_zmw9ep5n3"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "1758972608716_ivq9o10bi",
|
||||
"className": "BTConditionRandom",
|
||||
"name": "随机条件节点",
|
||||
"position": {
|
||||
"x": -340,
|
||||
"y": -60
|
||||
},
|
||||
"parameters": {
|
||||
"_value": 0.5
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1758972608716_zmw9ep5n3",
|
||||
"className": "BTAnimation",
|
||||
"name": "播放动画",
|
||||
"position": {
|
||||
"x": -200,
|
||||
"y": -60
|
||||
},
|
||||
"parameters": {
|
||||
"_name": "jump",
|
||||
"_loop": false
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1758972698829_wxfe7ut33",
|
||||
"className": "LimitTime",
|
||||
"name": "时间限制节点",
|
||||
"position": {
|
||||
"x": 220,
|
||||
"y": -140
|
||||
},
|
||||
"parameters": {
|
||||
"_max": 2
|
||||
},
|
||||
"children": [
|
||||
"1758889925476_dcyjc7a4o"
|
||||
]
|
||||
}
|
||||
],
|
||||
"connections": [
|
||||
{
|
||||
"id": "conn_1758206976733_208tneycs",
|
||||
"sourceNodeId": "1758206972710_bhxebhy7o",
|
||||
"targetNodeId": "1758090634327_mf36nwkdt",
|
||||
"id": "conn_1758972580886_zykcbl2vk",
|
||||
"sourceNodeId": "1758972550481_0iq7imml9",
|
||||
"targetNodeId": "1758972573109_fxt7magur",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758206989897_46hw88z7h",
|
||||
"sourceNodeId": "1758090634327_mf36nwkdt",
|
||||
"targetNodeId": "1758206988178_55b7kk5va",
|
||||
"id": "conn_1758972582770_9e4pexjcz",
|
||||
"sourceNodeId": "1758972550481_0iq7imml9",
|
||||
"targetNodeId": "1758889921667_sjwxkfjs7",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758972608716_6gnj5711e",
|
||||
"sourceNodeId": "1758972608716_o2uai5dp8",
|
||||
"targetNodeId": "1758972608716_ivq9o10bi",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758972608716_9y9ytjxa8",
|
||||
"sourceNodeId": "1758972608716_o2uai5dp8",
|
||||
"targetNodeId": "1758972608716_zmw9ep5n3",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758972613504_me3rp31l8",
|
||||
"sourceNodeId": "1758972524240_4ockrv5jo",
|
||||
"targetNodeId": "1758972608716_o2uai5dp8",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758972674275_rkn2let28",
|
||||
"sourceNodeId": "1758972524240_4ockrv5jo",
|
||||
"targetNodeId": "1758972550481_0iq7imml9",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758972717495_fo5zdeslg",
|
||||
"sourceNodeId": "1758972524240_4ockrv5jo",
|
||||
"targetNodeId": "1758972698829_wxfe7ut33",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758972724719_hjsvpuvvy",
|
||||
"sourceNodeId": "1758972698829_wxfe7ut33",
|
||||
"targetNodeId": "1758889925476_dcyjc7a4o",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
}
|
||||
],
|
||||
"canvasScale": 1.139190980775211,
|
||||
"canvasScale": 1.953125,
|
||||
"canvasOffset": {
|
||||
"x": 549.4323607689915,
|
||||
"y": 698.6185343759718
|
||||
"x": 700,
|
||||
"y": 665.25
|
||||
}
|
||||
}
|
||||
193
bt-demo/extensions-config/bt-editor/bt-tree3.json
Normal file
193
bt-demo/extensions-config/bt-editor/bt-tree3.json
Normal file
@@ -0,0 +1,193 @@
|
||||
{
|
||||
"name": "bt-tree3",
|
||||
"description": "",
|
||||
"nodes": [
|
||||
{
|
||||
"id": "1758979704536_g6jkamjdm",
|
||||
"className": "Selector",
|
||||
"name": "选择节点",
|
||||
"position": {
|
||||
"x": -60,
|
||||
"y": -220
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758979708831_vibpbusev",
|
||||
"1758979710657_ksqwgrqym",
|
||||
"1758979712702_5miziffc9"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "1758979708831_vibpbusev",
|
||||
"className": "Sequence",
|
||||
"name": "顺序节点",
|
||||
"position": {
|
||||
"x": -260,
|
||||
"y": -120
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758979721847_ikkmffinc",
|
||||
"1758979717102_hs4zv2ysl"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "1758979710657_ksqwgrqym",
|
||||
"className": "Sequence",
|
||||
"name": "顺序节点",
|
||||
"position": {
|
||||
"x": 20,
|
||||
"y": -120
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758979723586_oa4umrekl",
|
||||
"1758979718532_16c9kb7cx"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "1758979712702_5miziffc9",
|
||||
"className": "Sequence",
|
||||
"name": "顺序节点",
|
||||
"position": {
|
||||
"x": 220,
|
||||
"y": -120
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758979720285_9ojvbt7sw"
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "1758979717102_hs4zv2ysl",
|
||||
"className": "BTAnimation",
|
||||
"name": "播放动画",
|
||||
"position": {
|
||||
"x": -200,
|
||||
"y": -60
|
||||
},
|
||||
"parameters": {
|
||||
"_name": "run",
|
||||
"_loop": false
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1758979718532_16c9kb7cx",
|
||||
"className": "BTAnimation",
|
||||
"name": "播放动画",
|
||||
"position": {
|
||||
"x": 80,
|
||||
"y": -60
|
||||
},
|
||||
"parameters": {
|
||||
"_name": "",
|
||||
"_loop": false
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1758979720285_9ojvbt7sw",
|
||||
"className": "BTAnimation",
|
||||
"name": "播放动画",
|
||||
"position": {
|
||||
"x": 220,
|
||||
"y": -60
|
||||
},
|
||||
"parameters": {
|
||||
"_name": "",
|
||||
"_loop": false
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1758979721847_ikkmffinc",
|
||||
"className": "BTConditionRandom",
|
||||
"name": "随机条件节点",
|
||||
"position": {
|
||||
"x": -340,
|
||||
"y": -60
|
||||
},
|
||||
"parameters": {
|
||||
"_value": 0.5
|
||||
},
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"id": "1758979723586_oa4umrekl",
|
||||
"className": "BTConditionRandom",
|
||||
"name": "随机条件节点",
|
||||
"position": {
|
||||
"x": -60,
|
||||
"y": -60
|
||||
},
|
||||
"parameters": {
|
||||
"_value": 0.5
|
||||
},
|
||||
"children": []
|
||||
}
|
||||
],
|
||||
"connections": [
|
||||
{
|
||||
"id": "conn_1758979728478_r812fr61c",
|
||||
"sourceNodeId": "1758979704536_g6jkamjdm",
|
||||
"targetNodeId": "1758979708831_vibpbusev",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758979730147_24owqabyj",
|
||||
"sourceNodeId": "1758979704536_g6jkamjdm",
|
||||
"targetNodeId": "1758979710657_ksqwgrqym",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758979732272_8ywszwdxr",
|
||||
"sourceNodeId": "1758979704536_g6jkamjdm",
|
||||
"targetNodeId": "1758979712702_5miziffc9",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758979734464_rm0ysdtpo",
|
||||
"sourceNodeId": "1758979708831_vibpbusev",
|
||||
"targetNodeId": "1758979721847_ikkmffinc",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758979739229_8pnb80e23",
|
||||
"sourceNodeId": "1758979708831_vibpbusev",
|
||||
"targetNodeId": "1758979717102_hs4zv2ysl",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758979741003_zg52rxs79",
|
||||
"sourceNodeId": "1758979710657_ksqwgrqym",
|
||||
"targetNodeId": "1758979723586_oa4umrekl",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758979744846_1oagoplj0",
|
||||
"sourceNodeId": "1758979710657_ksqwgrqym",
|
||||
"targetNodeId": "1758979718532_16c9kb7cx",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758979750437_3oafpzhyz",
|
||||
"sourceNodeId": "1758979712702_5miziffc9",
|
||||
"targetNodeId": "1758979720285_9ojvbt7sw",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
}
|
||||
],
|
||||
"canvasScale": 1,
|
||||
"canvasOffset": {
|
||||
"x": 595,
|
||||
"y": 618.5
|
||||
}
|
||||
}
|
||||
494
bt-demo/extensions-config/bt-editor/example-boss.json
Normal file
494
bt-demo/extensions-config/bt-editor/example-boss.json
Normal file
@@ -0,0 +1,494 @@
|
||||
{
|
||||
"name": "example-boss",
|
||||
"description": "",
|
||||
"nodes": [
|
||||
{
|
||||
"id": "1758636606871_d00eo32m0",
|
||||
"className": "Selector",
|
||||
"name": "选择节点",
|
||||
"position": {
|
||||
"x": -360,
|
||||
"y": -240
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758636606871_nlci5zgin",
|
||||
"1758636827735_ghi1jyp6e",
|
||||
"1758636606871_73vz04ef6"
|
||||
],
|
||||
"alias": "Boss选择节点"
|
||||
},
|
||||
{
|
||||
"id": "1758636606871_nlci5zgin",
|
||||
"className": "Sequence",
|
||||
"name": "顺序节点",
|
||||
"position": {
|
||||
"x": -740,
|
||||
"y": -180
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758636606871_bfer3pf0k",
|
||||
"1758636606871_fz7ji79yr"
|
||||
],
|
||||
"alias": "第三阶段"
|
||||
},
|
||||
{
|
||||
"id": "1758636606871_bfer3pf0k",
|
||||
"className": "BTConditionTest",
|
||||
"name": "测试条件节点",
|
||||
"position": {
|
||||
"x": -920,
|
||||
"y": -80
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "血量<25%"
|
||||
},
|
||||
{
|
||||
"id": "1758636606871_fz7ji79yr",
|
||||
"className": "Selector",
|
||||
"name": "选择节点",
|
||||
"position": {
|
||||
"x": -780,
|
||||
"y": -80
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758636606871_9xic9f2n1",
|
||||
"1758636606871_v7xq9t9ca",
|
||||
"1758636606871_3hexy07r4"
|
||||
],
|
||||
"alias": "狂暴行为选择"
|
||||
},
|
||||
{
|
||||
"id": "1758636606871_9xic9f2n1",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": -960,
|
||||
"y": 60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "火焰吐息"
|
||||
},
|
||||
{
|
||||
"id": "1758636606871_v7xq9t9ca",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": -820,
|
||||
"y": 60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "地面重击"
|
||||
},
|
||||
{
|
||||
"id": "1758636606871_3hexy07r4",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": -680,
|
||||
"y": 60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "愤怒冲撞"
|
||||
},
|
||||
{
|
||||
"id": "1758636606871_ramtsopmx",
|
||||
"className": "Sequence",
|
||||
"name": "顺序节点",
|
||||
"position": {
|
||||
"x": -540,
|
||||
"y": 60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758636606871_wkmdmgfdw",
|
||||
"1758636926699_fkhgmqdd1",
|
||||
"1758636950500_y5gbq9gt9"
|
||||
],
|
||||
"alias": "飞行轰炸"
|
||||
},
|
||||
{
|
||||
"id": "1758636606871_wkmdmgfdw",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": -680,
|
||||
"y": 140
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "起飞"
|
||||
},
|
||||
{
|
||||
"id": "1758636606871_73vz04ef6",
|
||||
"className": "Selector",
|
||||
"name": "选择节点",
|
||||
"position": {
|
||||
"x": -180,
|
||||
"y": -100
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758637141288_y6xr4qiqo",
|
||||
"1758637139642_lhe3fdfhi",
|
||||
"1758636606871_4cwadcn7f"
|
||||
],
|
||||
"alias": "第一阶段"
|
||||
},
|
||||
{
|
||||
"id": "1758636606871_o1bko71f4",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": -220,
|
||||
"y": 240
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "在攻击范围内?"
|
||||
},
|
||||
{
|
||||
"id": "1758636606871_kman1jm6o",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": -80,
|
||||
"y": 240
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "爪击攻击"
|
||||
},
|
||||
{
|
||||
"id": "1758636606871_4cwadcn7f",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": 120,
|
||||
"y": 60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "位置调整"
|
||||
},
|
||||
{
|
||||
"id": "1758636783944_9xxk4gqyo",
|
||||
"className": "BTConditionTest",
|
||||
"name": "测试条件节点",
|
||||
"position": {
|
||||
"x": -560,
|
||||
"y": -60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "血量<60%"
|
||||
},
|
||||
{
|
||||
"id": "1758636827735_ghi1jyp6e",
|
||||
"className": "Sequence",
|
||||
"name": "顺序节点",
|
||||
"position": {
|
||||
"x": -480,
|
||||
"y": -120
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758636783944_9xxk4gqyo",
|
||||
"1758636868515_9gnnfpbvg"
|
||||
],
|
||||
"alias": "第二阶段"
|
||||
},
|
||||
{
|
||||
"id": "1758636868515_9gnnfpbvg",
|
||||
"className": "Selector",
|
||||
"name": "选择节点",
|
||||
"position": {
|
||||
"x": -400,
|
||||
"y": -40
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758636606871_ramtsopmx",
|
||||
"1758636975617_40xzee108",
|
||||
"1758636981864_rtfejtz1m"
|
||||
],
|
||||
"alias": "空中行为"
|
||||
},
|
||||
{
|
||||
"id": "1758636926699_fkhgmqdd1",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": -540,
|
||||
"y": 140
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "空中盘旋"
|
||||
},
|
||||
{
|
||||
"id": "1758636950500_y5gbq9gt9",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": -400,
|
||||
"y": 140
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "火球轰炸"
|
||||
},
|
||||
{
|
||||
"id": "1758636975617_40xzee108",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": -400,
|
||||
"y": 60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "俯冲攻击"
|
||||
},
|
||||
{
|
||||
"id": "1758636981864_rtfejtz1m",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": -260,
|
||||
"y": 60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "着陆休息"
|
||||
},
|
||||
{
|
||||
"id": "1758637139642_lhe3fdfhi",
|
||||
"className": "Sequence",
|
||||
"name": "顺序节点",
|
||||
"position": {
|
||||
"x": -40,
|
||||
"y": 40
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758637233781_l0o4zg8uh",
|
||||
"1758637233781_vrbhvrzj7"
|
||||
],
|
||||
"alias": "远程攻击"
|
||||
},
|
||||
{
|
||||
"id": "1758637141288_y6xr4qiqo",
|
||||
"className": "Sequence",
|
||||
"name": "顺序节点",
|
||||
"position": {
|
||||
"x": -160,
|
||||
"y": 120
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758636606871_o1bko71f4",
|
||||
"1758636606871_kman1jm6o"
|
||||
],
|
||||
"alias": "近战攻击"
|
||||
},
|
||||
{
|
||||
"id": "1758637233781_l0o4zg8uh",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": 0,
|
||||
"y": 160
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "远程攻击范围内?"
|
||||
},
|
||||
{
|
||||
"id": "1758637233781_vrbhvrzj7",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": 140,
|
||||
"y": 180
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "火焰吐息"
|
||||
}
|
||||
],
|
||||
"connections": [
|
||||
{
|
||||
"id": "conn_1758636606871_hohhzwyui",
|
||||
"sourceNodeId": "1758636606871_d00eo32m0",
|
||||
"targetNodeId": "1758636606871_nlci5zgin",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758636606871_g4io9w6xa",
|
||||
"sourceNodeId": "1758636606871_nlci5zgin",
|
||||
"targetNodeId": "1758636606871_bfer3pf0k",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758636606871_uxssfr3ed",
|
||||
"sourceNodeId": "1758636606871_nlci5zgin",
|
||||
"targetNodeId": "1758636606871_fz7ji79yr",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758636606871_f5z1f2yqo",
|
||||
"sourceNodeId": "1758636606871_fz7ji79yr",
|
||||
"targetNodeId": "1758636606871_9xic9f2n1",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758636606871_8y8rjemlv",
|
||||
"sourceNodeId": "1758636606871_fz7ji79yr",
|
||||
"targetNodeId": "1758636606871_v7xq9t9ca",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758636606871_rt5kqakrv",
|
||||
"sourceNodeId": "1758636606871_fz7ji79yr",
|
||||
"targetNodeId": "1758636606871_3hexy07r4",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758636606871_x2gm9dhxe",
|
||||
"sourceNodeId": "1758636606871_ramtsopmx",
|
||||
"targetNodeId": "1758636606871_wkmdmgfdw",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758636831033_ojdk1yez2",
|
||||
"sourceNodeId": "1758636606871_d00eo32m0",
|
||||
"targetNodeId": "1758636827735_ghi1jyp6e",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758636838409_vvu7h2oxv",
|
||||
"sourceNodeId": "1758636827735_ghi1jyp6e",
|
||||
"targetNodeId": "1758636783944_9xxk4gqyo",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758636881443_9l4j91h2l",
|
||||
"sourceNodeId": "1758636827735_ghi1jyp6e",
|
||||
"targetNodeId": "1758636868515_9gnnfpbvg",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758636900749_xnmxnysyq",
|
||||
"sourceNodeId": "1758636868515_9gnnfpbvg",
|
||||
"targetNodeId": "1758636606871_ramtsopmx",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758636941918_meg9myb9f",
|
||||
"sourceNodeId": "1758636606871_ramtsopmx",
|
||||
"targetNodeId": "1758636926699_fkhgmqdd1",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758636956983_adx271a9m",
|
||||
"sourceNodeId": "1758636606871_ramtsopmx",
|
||||
"targetNodeId": "1758636950500_y5gbq9gt9",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758636979547_gcm5tlfpz",
|
||||
"sourceNodeId": "1758636868515_9gnnfpbvg",
|
||||
"targetNodeId": "1758636975617_40xzee108",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758636983730_fkcf1oa0r",
|
||||
"sourceNodeId": "1758636868515_9gnnfpbvg",
|
||||
"targetNodeId": "1758636981864_rtfejtz1m",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758637120534_9zvi0veg2",
|
||||
"sourceNodeId": "1758636606871_d00eo32m0",
|
||||
"targetNodeId": "1758636606871_73vz04ef6",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758637146881_ff7nkp6qb",
|
||||
"sourceNodeId": "1758636606871_73vz04ef6",
|
||||
"targetNodeId": "1758637141288_y6xr4qiqo",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758637156935_u4w7h7pm7",
|
||||
"sourceNodeId": "1758636606871_73vz04ef6",
|
||||
"targetNodeId": "1758637139642_lhe3fdfhi",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758637192215_aee0g0293",
|
||||
"sourceNodeId": "1758636606871_73vz04ef6",
|
||||
"targetNodeId": "1758636606871_4cwadcn7f",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758637199301_402o3lx5d",
|
||||
"sourceNodeId": "1758637141288_y6xr4qiqo",
|
||||
"targetNodeId": "1758636606871_o1bko71f4",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758637201011_83nxti0fo",
|
||||
"sourceNodeId": "1758637141288_y6xr4qiqo",
|
||||
"targetNodeId": "1758636606871_kman1jm6o",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758637238023_fcezi3h1o",
|
||||
"sourceNodeId": "1758637139642_lhe3fdfhi",
|
||||
"targetNodeId": "1758637233781_l0o4zg8uh",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758637240305_v6mf8e059",
|
||||
"sourceNodeId": "1758637139642_lhe3fdfhi",
|
||||
"targetNodeId": "1758637233781_vrbhvrzj7",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
}
|
||||
],
|
||||
"canvasScale": 1.0893125857312862,
|
||||
"canvasOffset": {
|
||||
"x": 1076.4697723606591,
|
||||
"y": 543.3385223005863
|
||||
}
|
||||
}
|
||||
678
bt-demo/extensions-config/bt-editor/example-npc1.json
Normal file
678
bt-demo/extensions-config/bt-editor/example-npc1.json
Normal file
@@ -0,0 +1,678 @@
|
||||
{
|
||||
"name": "example-npc1",
|
||||
"description": "",
|
||||
"nodes": [
|
||||
{
|
||||
"id": "1758635344069_hairxmvmh",
|
||||
"className": "Selector",
|
||||
"name": "选择节点",
|
||||
"position": {
|
||||
"x": -60,
|
||||
"y": -220
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758635421003_4s8uj787l",
|
||||
"1758635605374_990xn0z9c",
|
||||
"1758635344069_4yss1wz7d",
|
||||
"1758636072669_whqacjf0i",
|
||||
"1758636171277_d7th6ojvm"
|
||||
],
|
||||
"alias": "居民AI 选择节"
|
||||
},
|
||||
{
|
||||
"id": "1758635344069_4yss1wz7d",
|
||||
"className": "Sequence",
|
||||
"name": "顺序节点",
|
||||
"position": {
|
||||
"x": 220,
|
||||
"y": -120
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758635344069_gg3q5rxes",
|
||||
"1758635344069_7ecq7pfzw"
|
||||
],
|
||||
"alias": "工作"
|
||||
},
|
||||
{
|
||||
"id": "1758635344069_gg3q5rxes",
|
||||
"className": "BTConditionTest",
|
||||
"name": "测试条件节点",
|
||||
"position": {
|
||||
"x": 20,
|
||||
"y": -60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "在工作时间?"
|
||||
},
|
||||
{
|
||||
"id": "1758635344069_7ecq7pfzw",
|
||||
"className": "Selector",
|
||||
"name": "选择节点",
|
||||
"position": {
|
||||
"x": 300,
|
||||
"y": -40
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758635344069_8ck2fgr24",
|
||||
"1758635344069_1wzefq3da",
|
||||
"1758635344069_3ezjerufd"
|
||||
],
|
||||
"alias": "工作行为选择"
|
||||
},
|
||||
{
|
||||
"id": "1758635344069_8ck2fgr24",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": 160,
|
||||
"y": 60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "商店经营"
|
||||
},
|
||||
{
|
||||
"id": "1758635344069_1wzefq3da",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": 300,
|
||||
"y": 60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "田间劳作"
|
||||
},
|
||||
{
|
||||
"id": "1758635344069_3ezjerufd",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": 440,
|
||||
"y": 60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "巡逻守卫"
|
||||
},
|
||||
{
|
||||
"id": "1758635421003_4s8uj787l",
|
||||
"className": "Selector",
|
||||
"name": "选择节点",
|
||||
"position": {
|
||||
"x": -1040,
|
||||
"y": -120
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758635460230_zn5vibc1s",
|
||||
"1758635463818_pn3pcjsxo",
|
||||
"1758635545865_k2vgufpnb"
|
||||
],
|
||||
"alias": "紧急情况处理"
|
||||
},
|
||||
{
|
||||
"id": "1758635460230_zn5vibc1s",
|
||||
"className": "Sequence",
|
||||
"name": "顺序节点",
|
||||
"position": {
|
||||
"x": -1320,
|
||||
"y": -40
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758635460230_j09ztl8mq",
|
||||
"1758635460230_qvwu6fx64"
|
||||
],
|
||||
"alias": "火灾逃生"
|
||||
},
|
||||
{
|
||||
"id": "1758635460230_j09ztl8mq",
|
||||
"className": "BTConditionTest",
|
||||
"name": "测试条件节点",
|
||||
"position": {
|
||||
"x": -1380,
|
||||
"y": 40
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "发现火灾"
|
||||
},
|
||||
{
|
||||
"id": "1758635460230_qvwu6fx64",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": -1240,
|
||||
"y": 60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "逃离火场"
|
||||
},
|
||||
{
|
||||
"id": "1758635463818_pn3pcjsxo",
|
||||
"className": "Sequence",
|
||||
"name": "顺序节点",
|
||||
"position": {
|
||||
"x": -1040,
|
||||
"y": -40
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758635463818_pihq95w8k",
|
||||
"1758635463818_5lxcl9204"
|
||||
],
|
||||
"alias": "怪物入侵"
|
||||
},
|
||||
{
|
||||
"id": "1758635463818_pihq95w8k",
|
||||
"className": "BTConditionTest",
|
||||
"name": "测试条件节点",
|
||||
"position": {
|
||||
"x": -1100,
|
||||
"y": 40
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "发现怪物"
|
||||
},
|
||||
{
|
||||
"id": "1758635463818_5lxcl9204",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": -960,
|
||||
"y": 60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "躲避怪物"
|
||||
},
|
||||
{
|
||||
"id": "1758635545865_k2vgufpnb",
|
||||
"className": "Sequence",
|
||||
"name": "顺序节点",
|
||||
"position": {
|
||||
"x": -760,
|
||||
"y": -40
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758635545865_zlzorqr1s",
|
||||
"1758635545865_z6hmdd955"
|
||||
],
|
||||
"alias": "天气避难"
|
||||
},
|
||||
{
|
||||
"id": "1758635545865_zlzorqr1s",
|
||||
"className": "BTConditionTest",
|
||||
"name": "测试条件节点",
|
||||
"position": {
|
||||
"x": -820,
|
||||
"y": 40
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "恶劣天气"
|
||||
},
|
||||
{
|
||||
"id": "1758635545865_z6hmdd955",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": -680,
|
||||
"y": 60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "寻找庇护所"
|
||||
},
|
||||
{
|
||||
"id": "1758635605374_990xn0z9c",
|
||||
"className": "Selector",
|
||||
"name": "选择节点",
|
||||
"position": {
|
||||
"x": -340,
|
||||
"y": -120
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758635740579_fw4dk6ikf",
|
||||
"1758635744921_j7amyl952"
|
||||
],
|
||||
"alias": "社交互动"
|
||||
},
|
||||
{
|
||||
"id": "1758635624148_qew2aoutm",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": -400,
|
||||
"y": 60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "开始对话"
|
||||
},
|
||||
{
|
||||
"id": "1758635652784_531a4s3wt",
|
||||
"className": "BTConditionTest",
|
||||
"name": "测试条件节点",
|
||||
"position": {
|
||||
"x": -540,
|
||||
"y": 40
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "玩家靠近?"
|
||||
},
|
||||
{
|
||||
"id": "1758635705235_zn4f5x42i",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": -120,
|
||||
"y": 60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "社交行为"
|
||||
},
|
||||
{
|
||||
"id": "1758635740579_fw4dk6ikf",
|
||||
"className": "Sequence",
|
||||
"name": "顺序节点",
|
||||
"position": {
|
||||
"x": -480,
|
||||
"y": -40
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758635652784_531a4s3wt",
|
||||
"1758635624148_qew2aoutm"
|
||||
],
|
||||
"alias": "与玩家对话"
|
||||
},
|
||||
{
|
||||
"id": "1758635744921_j7amyl952",
|
||||
"className": "Sequence",
|
||||
"name": "顺序节点",
|
||||
"position": {
|
||||
"x": -200,
|
||||
"y": -40
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758635767133_koukdag8k",
|
||||
"1758635705235_zn4f5x42i"
|
||||
],
|
||||
"alias": "与NPC交流"
|
||||
},
|
||||
{
|
||||
"id": "1758635767133_koukdag8k",
|
||||
"className": "BTConditionTest",
|
||||
"name": "测试条件节点",
|
||||
"position": {
|
||||
"x": -260,
|
||||
"y": 40
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "附近有其他NPC"
|
||||
},
|
||||
{
|
||||
"id": "1758636072669_whqacjf0i",
|
||||
"className": "Sequence",
|
||||
"name": "顺序节点",
|
||||
"position": {
|
||||
"x": 780,
|
||||
"y": -120
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758636072669_23ygfl1xz",
|
||||
"1758636072669_efwoobpa6"
|
||||
],
|
||||
"alias": "休息"
|
||||
},
|
||||
{
|
||||
"id": "1758636072669_23ygfl1xz",
|
||||
"className": "BTConditionTest",
|
||||
"name": "测试条件节点",
|
||||
"position": {
|
||||
"x": 580,
|
||||
"y": -60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "在休息时间?"
|
||||
},
|
||||
{
|
||||
"id": "1758636072669_efwoobpa6",
|
||||
"className": "Selector",
|
||||
"name": "选择节点",
|
||||
"position": {
|
||||
"x": 860,
|
||||
"y": -40
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758636072669_1a8wocwxo",
|
||||
"1758636072669_2f7kryz2k",
|
||||
"1758636072669_qq7v8cita"
|
||||
],
|
||||
"alias": "休闲行为选择"
|
||||
},
|
||||
{
|
||||
"id": "1758636072669_1a8wocwxo",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": 720,
|
||||
"y": 60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "商店经营"
|
||||
},
|
||||
{
|
||||
"id": "1758636072669_2f7kryz2k",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": 860,
|
||||
"y": 60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "酒馆聚会"
|
||||
},
|
||||
{
|
||||
"id": "1758636072669_qq7v8cita",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": 1000,
|
||||
"y": 60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "街道闲逛"
|
||||
},
|
||||
{
|
||||
"id": "1758636171277_d7th6ojvm",
|
||||
"className": "Sequence",
|
||||
"name": "顺序节点",
|
||||
"position": {
|
||||
"x": 1200,
|
||||
"y": -120
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758636171277_ga2mbrzxt",
|
||||
"1758636171277_m9w7cla2o"
|
||||
],
|
||||
"alias": "睡眠"
|
||||
},
|
||||
{
|
||||
"id": "1758636171277_ga2mbrzxt",
|
||||
"className": "BTConditionTest",
|
||||
"name": "测试条件节点",
|
||||
"position": {
|
||||
"x": 1140,
|
||||
"y": -60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "睡觉时间"
|
||||
},
|
||||
{
|
||||
"id": "1758636171277_m9w7cla2o",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": 1280,
|
||||
"y": -40
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "睡觉"
|
||||
}
|
||||
],
|
||||
"connections": [
|
||||
{
|
||||
"id": "conn_1758635344069_g5evt0a55",
|
||||
"sourceNodeId": "1758635344069_hairxmvmh",
|
||||
"targetNodeId": "1758635344069_4yss1wz7d",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758635344069_635mfq9i3",
|
||||
"sourceNodeId": "1758635344069_4yss1wz7d",
|
||||
"targetNodeId": "1758635344069_gg3q5rxes",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758635344069_9s3w5e0un",
|
||||
"sourceNodeId": "1758635344069_4yss1wz7d",
|
||||
"targetNodeId": "1758635344069_7ecq7pfzw",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758635344069_8x0splgwg",
|
||||
"sourceNodeId": "1758635344069_7ecq7pfzw",
|
||||
"targetNodeId": "1758635344069_8ck2fgr24",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758635344069_isl3zgjdk",
|
||||
"sourceNodeId": "1758635344069_7ecq7pfzw",
|
||||
"targetNodeId": "1758635344069_1wzefq3da",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758635344069_qt7oa6p4i",
|
||||
"sourceNodeId": "1758635344069_7ecq7pfzw",
|
||||
"targetNodeId": "1758635344069_3ezjerufd",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758635424147_iccjn2uwj",
|
||||
"sourceNodeId": "1758635344069_hairxmvmh",
|
||||
"targetNodeId": "1758635421003_4s8uj787l",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758635460230_zvxht1t8t",
|
||||
"sourceNodeId": "1758635460230_zn5vibc1s",
|
||||
"targetNodeId": "1758635460230_j09ztl8mq",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758635460230_buaa4nw9s",
|
||||
"sourceNodeId": "1758635460230_zn5vibc1s",
|
||||
"targetNodeId": "1758635460230_qvwu6fx64",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758635463818_rukkjwv57",
|
||||
"sourceNodeId": "1758635463818_pn3pcjsxo",
|
||||
"targetNodeId": "1758635463818_pihq95w8k",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758635463818_qqu2vn4ri",
|
||||
"sourceNodeId": "1758635463818_pn3pcjsxo",
|
||||
"targetNodeId": "1758635463818_5lxcl9204",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758635482801_8qzraey6h",
|
||||
"sourceNodeId": "1758635421003_4s8uj787l",
|
||||
"targetNodeId": "1758635460230_zn5vibc1s",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758635484959_b57b7mjv2",
|
||||
"sourceNodeId": "1758635421003_4s8uj787l",
|
||||
"targetNodeId": "1758635463818_pn3pcjsxo",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758635545865_0gg6i98tc",
|
||||
"sourceNodeId": "1758635545865_k2vgufpnb",
|
||||
"targetNodeId": "1758635545865_zlzorqr1s",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758635545865_kq0md4693",
|
||||
"sourceNodeId": "1758635545865_k2vgufpnb",
|
||||
"targetNodeId": "1758635545865_z6hmdd955",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758635548778_wu79ybxfq",
|
||||
"sourceNodeId": "1758635421003_4s8uj787l",
|
||||
"targetNodeId": "1758635545865_k2vgufpnb",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758635607282_il4fwt2yi",
|
||||
"sourceNodeId": "1758635344069_hairxmvmh",
|
||||
"targetNodeId": "1758635605374_990xn0z9c",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758635743478_nh8my40cm",
|
||||
"sourceNodeId": "1758635605374_990xn0z9c",
|
||||
"targetNodeId": "1758635740579_fw4dk6ikf",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758635756635_47q580ro0",
|
||||
"sourceNodeId": "1758635740579_fw4dk6ikf",
|
||||
"targetNodeId": "1758635652784_531a4s3wt",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758635760244_jpdlqjzx6",
|
||||
"sourceNodeId": "1758635740579_fw4dk6ikf",
|
||||
"targetNodeId": "1758635624148_qew2aoutm",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758635769637_f4ss1fpgi",
|
||||
"sourceNodeId": "1758635744921_j7amyl952",
|
||||
"targetNodeId": "1758635767133_koukdag8k",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758635771670_kaec4j4lz",
|
||||
"sourceNodeId": "1758635605374_990xn0z9c",
|
||||
"targetNodeId": "1758635744921_j7amyl952",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758635814216_xduqega2f",
|
||||
"sourceNodeId": "1758635744921_j7amyl952",
|
||||
"targetNodeId": "1758635705235_zn4f5x42i",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758636072669_zzey7i401",
|
||||
"sourceNodeId": "1758636072669_whqacjf0i",
|
||||
"targetNodeId": "1758636072669_23ygfl1xz",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758636072669_ntj9ny811",
|
||||
"sourceNodeId": "1758636072669_whqacjf0i",
|
||||
"targetNodeId": "1758636072669_efwoobpa6",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758636072669_65be02vyw",
|
||||
"sourceNodeId": "1758636072669_efwoobpa6",
|
||||
"targetNodeId": "1758636072669_1a8wocwxo",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758636072669_tilypn8pf",
|
||||
"sourceNodeId": "1758636072669_efwoobpa6",
|
||||
"targetNodeId": "1758636072669_2f7kryz2k",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758636072669_3eblz933g",
|
||||
"sourceNodeId": "1758636072669_efwoobpa6",
|
||||
"targetNodeId": "1758636072669_qq7v8cita",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758636106650_2q3md7ywn",
|
||||
"sourceNodeId": "1758635344069_hairxmvmh",
|
||||
"targetNodeId": "1758636072669_whqacjf0i",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758636171277_n2pvad7qp",
|
||||
"sourceNodeId": "1758636171277_d7th6ojvm",
|
||||
"targetNodeId": "1758636171277_ga2mbrzxt",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758636186409_7udx1m2k5",
|
||||
"sourceNodeId": "1758635344069_hairxmvmh",
|
||||
"targetNodeId": "1758636171277_d7th6ojvm",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758636230675_q9z4toddg",
|
||||
"sourceNodeId": "1758636171277_d7th6ojvm",
|
||||
"targetNodeId": "1758636171277_m9w7cla2o",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
}
|
||||
],
|
||||
"canvasScale": 1,
|
||||
"canvasOffset": {
|
||||
"x": -253,
|
||||
"y": 424.5
|
||||
}
|
||||
}
|
||||
494
bt-demo/extensions-config/bt-editor/example-scanning1.json
Normal file
494
bt-demo/extensions-config/bt-editor/example-scanning1.json
Normal file
@@ -0,0 +1,494 @@
|
||||
{
|
||||
"name": "example-scanning1",
|
||||
"description": "",
|
||||
"nodes": [
|
||||
{
|
||||
"id": "1758633912545_7xy1se8pk",
|
||||
"className": "Selector",
|
||||
"name": "选择节点",
|
||||
"position": {
|
||||
"x": -180,
|
||||
"y": -240
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758633912545_z0wbw5zkn",
|
||||
"1758633912545_ismgc4xad",
|
||||
"1758633912545_cdy2pg1pn",
|
||||
"1758634397890_nh8nat3ph"
|
||||
],
|
||||
"alias": "守卫AI"
|
||||
},
|
||||
{
|
||||
"id": "1758633912545_26tx6w4f1",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": -760,
|
||||
"y": 140
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "攻击"
|
||||
},
|
||||
{
|
||||
"id": "1758633912545_df302i0u7",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": -340,
|
||||
"y": 60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "搜索敌人"
|
||||
},
|
||||
{
|
||||
"id": "1758633912545_qdoxrynps",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": -480,
|
||||
"y": 140
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "追击敌人"
|
||||
},
|
||||
{
|
||||
"id": "1758633912545_z0wbw5zkn",
|
||||
"className": "Sequence",
|
||||
"name": "顺序节点",
|
||||
"position": {
|
||||
"x": -680,
|
||||
"y": -120
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758633987202_p7z2iewl8",
|
||||
"1758634022458_f769kvf1x"
|
||||
],
|
||||
"alias": "战斗模式"
|
||||
},
|
||||
{
|
||||
"id": "1758633912545_ismgc4xad",
|
||||
"className": "Sequence",
|
||||
"name": "顺序节点",
|
||||
"position": {
|
||||
"x": -80,
|
||||
"y": -120
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758633912545_q02k78ubn",
|
||||
"1758634249975_c1i6wxc2w"
|
||||
],
|
||||
"alias": "警戒模式"
|
||||
},
|
||||
{
|
||||
"id": "1758633912545_nawabdhem",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": -160,
|
||||
"y": 60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "调查可疑位置"
|
||||
},
|
||||
{
|
||||
"id": "1758633912545_q02k78ubn",
|
||||
"className": "BTConditionTest",
|
||||
"name": "测试条件节点",
|
||||
"position": {
|
||||
"x": -180,
|
||||
"y": -60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "处于警戒状态?"
|
||||
},
|
||||
{
|
||||
"id": "1758633912545_cdy2pg1pn",
|
||||
"className": "Sequence",
|
||||
"name": "顺序节点",
|
||||
"position": {
|
||||
"x": 360,
|
||||
"y": -120
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758634317404_8aaeb4ve2",
|
||||
"1758634337943_93kaze24m"
|
||||
],
|
||||
"alias": "怀疑模式"
|
||||
},
|
||||
{
|
||||
"id": "1758633912545_lgpy79s0o",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": 280,
|
||||
"y": 60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "查看声音方向"
|
||||
},
|
||||
{
|
||||
"id": "1758633912545_i1kac3qvv",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": 420,
|
||||
"y": 60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "接近可以位置"
|
||||
},
|
||||
{
|
||||
"id": "1758633912545_5cqcrrfkg",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": 560,
|
||||
"y": 60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "提高警觉"
|
||||
},
|
||||
{
|
||||
"id": "1758633987202_p7z2iewl8",
|
||||
"className": "BTConditionTest",
|
||||
"name": "测试条件节点",
|
||||
"position": {
|
||||
"x": -800,
|
||||
"y": -60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "处于战斗状态?"
|
||||
},
|
||||
{
|
||||
"id": "1758634022458_f769kvf1x",
|
||||
"className": "Selector",
|
||||
"name": "选择节点",
|
||||
"position": {
|
||||
"x": -620,
|
||||
"y": -40
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758634091921_6xr6c6cul",
|
||||
"1758634094741_dk5mmim4z",
|
||||
"1758633912545_df302i0u7"
|
||||
],
|
||||
"alias": "战斗行为选择"
|
||||
},
|
||||
{
|
||||
"id": "1758634091921_6xr6c6cul",
|
||||
"className": "Sequence",
|
||||
"name": "顺序节点",
|
||||
"position": {
|
||||
"x": -820,
|
||||
"y": 60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758634117284_29jp1jxyq",
|
||||
"1758633912545_26tx6w4f1"
|
||||
],
|
||||
"alias": "攻击"
|
||||
},
|
||||
{
|
||||
"id": "1758634094741_dk5mmim4z",
|
||||
"className": "Sequence",
|
||||
"name": "顺序节点",
|
||||
"position": {
|
||||
"x": -540,
|
||||
"y": 60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758634119520_rz3hx4hno",
|
||||
"1758633912545_qdoxrynps"
|
||||
],
|
||||
"alias": "追击"
|
||||
},
|
||||
{
|
||||
"id": "1758634117284_29jp1jxyq",
|
||||
"className": "BTConditionTest",
|
||||
"name": "测试条件节点",
|
||||
"position": {
|
||||
"x": -900,
|
||||
"y": 120
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "敌人在范围内?"
|
||||
},
|
||||
{
|
||||
"id": "1758634119520_rz3hx4hno",
|
||||
"className": "BTConditionTest",
|
||||
"name": "测试条件节点",
|
||||
"position": {
|
||||
"x": -620,
|
||||
"y": 120
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "敌人可见?"
|
||||
},
|
||||
{
|
||||
"id": "1758634249975_c1i6wxc2w",
|
||||
"className": "Selector",
|
||||
"name": "选择节点",
|
||||
"position": {
|
||||
"x": -20,
|
||||
"y": -40
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758633912545_nawabdhem",
|
||||
"1758634290870_im6rplw92",
|
||||
"1758634284662_l7hvr7fuo"
|
||||
],
|
||||
"alias": "警戒行为选择"
|
||||
},
|
||||
{
|
||||
"id": "1758634284662_l7hvr7fuo",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": 120,
|
||||
"y": 60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "扩大搜索范围"
|
||||
},
|
||||
{
|
||||
"id": "1758634290870_im6rplw92",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": -20,
|
||||
"y": 60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "呼叫支援"
|
||||
},
|
||||
{
|
||||
"id": "1758634317404_8aaeb4ve2",
|
||||
"className": "BTConditionTest",
|
||||
"name": "测试条件节点",
|
||||
"position": {
|
||||
"x": 260,
|
||||
"y": -60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "处于怀疑状态?"
|
||||
},
|
||||
{
|
||||
"id": "1758634337943_93kaze24m",
|
||||
"className": "Selector",
|
||||
"name": "选择节点",
|
||||
"position": {
|
||||
"x": 420,
|
||||
"y": -40
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758633912545_lgpy79s0o",
|
||||
"1758633912545_i1kac3qvv",
|
||||
"1758633912545_5cqcrrfkg"
|
||||
],
|
||||
"alias": "怀疑行为选择"
|
||||
},
|
||||
{
|
||||
"id": "1758634397890_nh8nat3ph",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": 540,
|
||||
"y": -120
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "正常巡逻"
|
||||
}
|
||||
],
|
||||
"connections": [
|
||||
{
|
||||
"id": "conn_1758633912545_72krgicoe",
|
||||
"sourceNodeId": "1758633912545_7xy1se8pk",
|
||||
"targetNodeId": "1758633912545_z0wbw5zkn",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758633912545_bhua2nzbe",
|
||||
"sourceNodeId": "1758633912545_7xy1se8pk",
|
||||
"targetNodeId": "1758633912545_ismgc4xad",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758633912545_qztd5a8yt",
|
||||
"sourceNodeId": "1758633912545_ismgc4xad",
|
||||
"targetNodeId": "1758633912545_q02k78ubn",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758633912545_fv0m9fjvz",
|
||||
"sourceNodeId": "1758633912545_7xy1se8pk",
|
||||
"targetNodeId": "1758633912545_cdy2pg1pn",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758633989141_2t28ad61w",
|
||||
"sourceNodeId": "1758633912545_z0wbw5zkn",
|
||||
"targetNodeId": "1758633987202_p7z2iewl8",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758634024382_250r9sidn",
|
||||
"sourceNodeId": "1758633912545_z0wbw5zkn",
|
||||
"targetNodeId": "1758634022458_f769kvf1x",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758634096585_wmf98bvny",
|
||||
"sourceNodeId": "1758634022458_f769kvf1x",
|
||||
"targetNodeId": "1758634091921_6xr6c6cul",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758634098806_r2eard8uu",
|
||||
"sourceNodeId": "1758634022458_f769kvf1x",
|
||||
"targetNodeId": "1758634094741_dk5mmim4z",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758634121545_kb9vs2npo",
|
||||
"sourceNodeId": "1758634091921_6xr6c6cul",
|
||||
"targetNodeId": "1758634117284_29jp1jxyq",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758634123128_3oq7o7eyv",
|
||||
"sourceNodeId": "1758634094741_dk5mmim4z",
|
||||
"targetNodeId": "1758634119520_rz3hx4hno",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758634125701_vu0xgjyca",
|
||||
"sourceNodeId": "1758634094741_dk5mmim4z",
|
||||
"targetNodeId": "1758633912545_qdoxrynps",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758634168660_65ptgegud",
|
||||
"sourceNodeId": "1758634022458_f769kvf1x",
|
||||
"targetNodeId": "1758633912545_df302i0u7",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758634191735_9dp24mq79",
|
||||
"sourceNodeId": "1758634091921_6xr6c6cul",
|
||||
"targetNodeId": "1758633912545_26tx6w4f1",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758634251707_a24kslpjc",
|
||||
"sourceNodeId": "1758633912545_ismgc4xad",
|
||||
"targetNodeId": "1758634249975_c1i6wxc2w",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758634271128_gpkx0yz3a",
|
||||
"sourceNodeId": "1758634249975_c1i6wxc2w",
|
||||
"targetNodeId": "1758633912545_nawabdhem",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758634293633_vn1hyilmw",
|
||||
"sourceNodeId": "1758634249975_c1i6wxc2w",
|
||||
"targetNodeId": "1758634290870_im6rplw92",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758634295590_opwzkozm3",
|
||||
"sourceNodeId": "1758634249975_c1i6wxc2w",
|
||||
"targetNodeId": "1758634284662_l7hvr7fuo",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758634319737_nkogdm0cs",
|
||||
"sourceNodeId": "1758633912545_cdy2pg1pn",
|
||||
"targetNodeId": "1758634317404_8aaeb4ve2",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758634344054_vo7vw8fmt",
|
||||
"sourceNodeId": "1758633912545_cdy2pg1pn",
|
||||
"targetNodeId": "1758634337943_93kaze24m",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758634385597_4o9rgtnom",
|
||||
"sourceNodeId": "1758634337943_93kaze24m",
|
||||
"targetNodeId": "1758633912545_lgpy79s0o",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758634387383_fdxkfmsjs",
|
||||
"sourceNodeId": "1758634337943_93kaze24m",
|
||||
"targetNodeId": "1758633912545_i1kac3qvv",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758634389050_8ad7tojaj",
|
||||
"sourceNodeId": "1758634337943_93kaze24m",
|
||||
"targetNodeId": "1758633912545_5cqcrrfkg",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758634403465_it5m1di95",
|
||||
"sourceNodeId": "1758633912545_7xy1se8pk",
|
||||
"targetNodeId": "1758634397890_nh8nat3ph",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
}
|
||||
],
|
||||
"canvasScale": 0.7882997760000008,
|
||||
"canvasOffset": {
|
||||
"x": 758.2,
|
||||
"y": 526.7
|
||||
}
|
||||
}
|
||||
11
bt-demo/extensions-config/bt-editor/test-bttree.json
Normal file
11
bt-demo/extensions-config/bt-editor/test-bttree.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "test-bttree",
|
||||
"description": "",
|
||||
"nodes": [],
|
||||
"connections": [],
|
||||
"canvasScale": 1,
|
||||
"canvasOffset": {
|
||||
"x": 723,
|
||||
"y": 531.5
|
||||
}
|
||||
}
|
||||
86
bt-demo/extensions-config/bt-editor/tree-example-move1.json
Normal file
86
bt-demo/extensions-config/bt-editor/tree-example-move1.json
Normal file
@@ -0,0 +1,86 @@
|
||||
{
|
||||
"name": "tree-example-move1",
|
||||
"description": "",
|
||||
"nodes": [
|
||||
{
|
||||
"id": "1758633158053_g12gp05tz",
|
||||
"className": "Sequence",
|
||||
"name": "顺序节点",
|
||||
"position": {
|
||||
"x": -60,
|
||||
"y": -220
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758633158053_n9lvsqtou",
|
||||
"1758633158053_m7mptbzme",
|
||||
"1758633230846_qqosra95l"
|
||||
],
|
||||
"alias": "巡逻顺序节点"
|
||||
},
|
||||
{
|
||||
"id": "1758633158053_n9lvsqtou",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": -200,
|
||||
"y": -120
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "移动到下一巡逻点"
|
||||
},
|
||||
{
|
||||
"id": "1758633158053_m7mptbzme",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": -60,
|
||||
"y": -120
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "等待片刻"
|
||||
},
|
||||
{
|
||||
"id": "1758633230846_qqosra95l",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": 80,
|
||||
"y": -120
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "更新巡逻点"
|
||||
}
|
||||
],
|
||||
"connections": [
|
||||
{
|
||||
"id": "conn_1758633158053_o1n2n1h4x",
|
||||
"sourceNodeId": "1758633158053_g12gp05tz",
|
||||
"targetNodeId": "1758633158053_n9lvsqtou",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758633175180_5ukpygitx",
|
||||
"sourceNodeId": "1758633158053_g12gp05tz",
|
||||
"targetNodeId": "1758633158053_m7mptbzme",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758633234380_cyje40zf5",
|
||||
"sourceNodeId": "1758633158053_g12gp05tz",
|
||||
"targetNodeId": "1758633230846_qqosra95l",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
}
|
||||
],
|
||||
"canvasScale": 1.2507982082066933,
|
||||
"canvasOffset": {
|
||||
"x": 569,
|
||||
"y": 704.2467267515208
|
||||
}
|
||||
}
|
||||
269
bt-demo/extensions-config/bt-editor/tree-example-move2.json
Normal file
269
bt-demo/extensions-config/bt-editor/tree-example-move2.json
Normal file
@@ -0,0 +1,269 @@
|
||||
{
|
||||
"name": "tree-example-move2",
|
||||
"description": "",
|
||||
"nodes": [
|
||||
{
|
||||
"id": "1758633408841_o85luvhya",
|
||||
"className": "Selector",
|
||||
"name": "选择节点",
|
||||
"position": {
|
||||
"x": -60,
|
||||
"y": -220
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758633372295_1vww23k1k",
|
||||
"1758633460046_alqdykjsd",
|
||||
"1758633637964_a0khi5e5k"
|
||||
],
|
||||
"alias": "智能巡逻选择节点"
|
||||
},
|
||||
{
|
||||
"id": "1758633372295_1vww23k1k",
|
||||
"className": "Sequence",
|
||||
"name": "顺序节点",
|
||||
"position": {
|
||||
"x": -400,
|
||||
"y": -120
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758633506673_f6rvm02zs",
|
||||
"1758633372295_1vokt067a",
|
||||
"1758633372295_7vyepkar1",
|
||||
"1758633372295_86o7jk1k4"
|
||||
],
|
||||
"alias": "调查异常"
|
||||
},
|
||||
{
|
||||
"id": "1758633372295_1vokt067a",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": -480,
|
||||
"y": -40
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "移动到异常位置"
|
||||
},
|
||||
{
|
||||
"id": "1758633372295_7vyepkar1",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": -340,
|
||||
"y": -40
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "调查"
|
||||
},
|
||||
{
|
||||
"id": "1758633372295_86o7jk1k4",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": -200,
|
||||
"y": -40
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "返回巡逻路线"
|
||||
},
|
||||
{
|
||||
"id": "1758633460046_alqdykjsd",
|
||||
"className": "Sequence",
|
||||
"name": "顺序节点",
|
||||
"position": {
|
||||
"x": 20,
|
||||
"y": -120
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758633584586_llol3kpvi",
|
||||
"1758633460046_l5944c3nc"
|
||||
],
|
||||
"alias": "响应呼叫"
|
||||
},
|
||||
{
|
||||
"id": "1758633460046_l5944c3nc",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": 80,
|
||||
"y": -40
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "前往支援"
|
||||
},
|
||||
{
|
||||
"id": "1758633506673_f6rvm02zs",
|
||||
"className": "BTConditionTest",
|
||||
"name": "测试条件节点",
|
||||
"position": {
|
||||
"x": -620,
|
||||
"y": -60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "发现异常?"
|
||||
},
|
||||
{
|
||||
"id": "1758633584586_llol3kpvi",
|
||||
"className": "BTConditionTest",
|
||||
"name": "测试条件节点",
|
||||
"position": {
|
||||
"x": -60,
|
||||
"y": -60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "收到求援信号?"
|
||||
},
|
||||
{
|
||||
"id": "1758633637964_a0khi5e5k",
|
||||
"className": "Sequence",
|
||||
"name": "顺序节点",
|
||||
"position": {
|
||||
"x": 360,
|
||||
"y": -120
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758633637964_dgyhnjuhl",
|
||||
"1758633637964_d7uht9tgg",
|
||||
"1758633637964_qc31zjqo5"
|
||||
],
|
||||
"alias": "巡逻"
|
||||
},
|
||||
{
|
||||
"id": "1758633637964_dgyhnjuhl",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": 220,
|
||||
"y": -40
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "移动到巡逻点"
|
||||
},
|
||||
{
|
||||
"id": "1758633637964_d7uht9tgg",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": 360,
|
||||
"y": -40
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "环顾四周"
|
||||
},
|
||||
{
|
||||
"id": "1758633637964_qc31zjqo5",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": 500,
|
||||
"y": -40
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "等待"
|
||||
}
|
||||
],
|
||||
"connections": [
|
||||
{
|
||||
"id": "conn_1758633372295_qdmeu2m29",
|
||||
"sourceNodeId": "1758633372295_1vww23k1k",
|
||||
"targetNodeId": "1758633372295_1vokt067a",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758633372295_myjl0d27a",
|
||||
"sourceNodeId": "1758633372295_1vww23k1k",
|
||||
"targetNodeId": "1758633372295_7vyepkar1",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758633372295_1ron3sff3",
|
||||
"sourceNodeId": "1758633372295_1vww23k1k",
|
||||
"targetNodeId": "1758633372295_86o7jk1k4",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758633410470_8lnhy9at6",
|
||||
"sourceNodeId": "1758633408841_o85luvhya",
|
||||
"targetNodeId": "1758633372295_1vww23k1k",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758633460046_1zy4a0vls",
|
||||
"sourceNodeId": "1758633460046_alqdykjsd",
|
||||
"targetNodeId": "1758633460046_l5944c3nc",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758633463466_ztkanoztc",
|
||||
"sourceNodeId": "1758633408841_o85luvhya",
|
||||
"targetNodeId": "1758633460046_alqdykjsd",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758633508904_9pyqismh3",
|
||||
"sourceNodeId": "1758633372295_1vww23k1k",
|
||||
"targetNodeId": "1758633506673_f6rvm02zs",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758633587533_wh3ccayol",
|
||||
"sourceNodeId": "1758633460046_alqdykjsd",
|
||||
"targetNodeId": "1758633584586_llol3kpvi",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758633637964_8n9zrweqx",
|
||||
"sourceNodeId": "1758633637964_a0khi5e5k",
|
||||
"targetNodeId": "1758633637964_dgyhnjuhl",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758633637964_y4rn7rwgc",
|
||||
"sourceNodeId": "1758633637964_a0khi5e5k",
|
||||
"targetNodeId": "1758633637964_d7uht9tgg",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758633637964_x5ey2s8z7",
|
||||
"sourceNodeId": "1758633637964_a0khi5e5k",
|
||||
"targetNodeId": "1758633637964_qc31zjqo5",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758633639995_rdo0y6s9l",
|
||||
"sourceNodeId": "1758633408841_o85luvhya",
|
||||
"targetNodeId": "1758633637964_a0khi5e5k",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
}
|
||||
],
|
||||
"canvasScale": 1.0680104605497773,
|
||||
"canvasOffset": {
|
||||
"x": 569,
|
||||
"y": 513.5
|
||||
}
|
||||
}
|
||||
168
bt-demo/extensions-config/bt-editor/tree-example1.json
Normal file
168
bt-demo/extensions-config/bt-editor/tree-example1.json
Normal file
@@ -0,0 +1,168 @@
|
||||
{
|
||||
"name": "tree-example1",
|
||||
"description": "",
|
||||
"nodes": [
|
||||
{
|
||||
"id": "1758630775717_d1gipfamh",
|
||||
"className": "Selector",
|
||||
"name": "选择节点",
|
||||
"position": {
|
||||
"x": -60,
|
||||
"y": -220
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758630814199_qnitmm2sd",
|
||||
"1758630832275_prflitgyu",
|
||||
"1758630967937_2c0t3xi6t"
|
||||
],
|
||||
"alias": "根选择节点"
|
||||
},
|
||||
{
|
||||
"id": "1758630814199_qnitmm2sd",
|
||||
"className": "Sequence",
|
||||
"name": "顺序节点",
|
||||
"position": {
|
||||
"x": -260,
|
||||
"y": -120
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758630875390_e3dlxo1jg",
|
||||
"1758630940801_u6j12wj96"
|
||||
],
|
||||
"alias": "攻击顺序节点"
|
||||
},
|
||||
{
|
||||
"id": "1758630832275_prflitgyu",
|
||||
"className": "Sequence",
|
||||
"name": "顺序节点",
|
||||
"position": {
|
||||
"x": 20,
|
||||
"y": -120
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758630915741_ux73zz8ws",
|
||||
"1758630955525_n0hw99t1q"
|
||||
],
|
||||
"alias": "逃跑顺序节点"
|
||||
},
|
||||
{
|
||||
"id": "1758630875390_e3dlxo1jg",
|
||||
"className": "BTConditionTest",
|
||||
"name": "测试条件节点",
|
||||
"position": {
|
||||
"x": -340,
|
||||
"y": -60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "敌人在附近"
|
||||
},
|
||||
{
|
||||
"id": "1758630915741_ux73zz8ws",
|
||||
"className": "BTConditionTest",
|
||||
"name": "测试条件节点",
|
||||
"position": {
|
||||
"x": -60,
|
||||
"y": -60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "血量低"
|
||||
},
|
||||
{
|
||||
"id": "1758630940801_u6j12wj96",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": -200,
|
||||
"y": -40
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "攻击"
|
||||
},
|
||||
{
|
||||
"id": "1758630955525_n0hw99t1q",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": 80,
|
||||
"y": -40
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "逃跑"
|
||||
},
|
||||
{
|
||||
"id": "1758630967937_2c0t3xi6t",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": 220,
|
||||
"y": -120
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "巡逻"
|
||||
}
|
||||
],
|
||||
"connections": [
|
||||
{
|
||||
"id": "conn_1758630929220_k30loxdah",
|
||||
"sourceNodeId": "1758630814199_qnitmm2sd",
|
||||
"targetNodeId": "1758630875390_e3dlxo1jg",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758630930951_5wgaug4ju",
|
||||
"sourceNodeId": "1758630775717_d1gipfamh",
|
||||
"targetNodeId": "1758630814199_qnitmm2sd",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758630932626_fz1jivc35",
|
||||
"sourceNodeId": "1758630775717_d1gipfamh",
|
||||
"targetNodeId": "1758630832275_prflitgyu",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758630934663_zoq1ugzkq",
|
||||
"sourceNodeId": "1758630832275_prflitgyu",
|
||||
"targetNodeId": "1758630915741_ux73zz8ws",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758630951335_f8qdr57vl",
|
||||
"sourceNodeId": "1758630814199_qnitmm2sd",
|
||||
"targetNodeId": "1758630940801_u6j12wj96",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758630957361_s28qi8xnd",
|
||||
"sourceNodeId": "1758630832275_prflitgyu",
|
||||
"targetNodeId": "1758630955525_n0hw99t1q",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758630973456_60p9k2k07",
|
||||
"sourceNodeId": "1758630775717_d1gipfamh",
|
||||
"targetNodeId": "1758630967937_2c0t3xi6t",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
}
|
||||
],
|
||||
"canvasScale": 1.2507982082066933,
|
||||
"canvasOffset": {
|
||||
"x": 465.5,
|
||||
"y": 644.8338118617028
|
||||
}
|
||||
}
|
||||
107
bt-demo/extensions-config/bt-editor/tree-example2.json
Normal file
107
bt-demo/extensions-config/bt-editor/tree-example2.json
Normal file
@@ -0,0 +1,107 @@
|
||||
{
|
||||
"name": "tree-example2",
|
||||
"description": "",
|
||||
"nodes": [
|
||||
{
|
||||
"id": "1758631669066_247k1fo68",
|
||||
"className": "Selector",
|
||||
"name": "选择节点",
|
||||
"position": {
|
||||
"x": -60,
|
||||
"y": -220
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758631669066_yqo3wjnns",
|
||||
"1758631669066_g6lvqwonn"
|
||||
],
|
||||
"alias": "根选择节点"
|
||||
},
|
||||
{
|
||||
"id": "1758631669066_yqo3wjnns",
|
||||
"className": "Sequence",
|
||||
"name": "顺序节点",
|
||||
"position": {
|
||||
"x": -120,
|
||||
"y": -120
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [
|
||||
"1758631669066_mr87yjkdq",
|
||||
"1758631669066_e5qqjm0s8"
|
||||
],
|
||||
"alias": "攻击顺序节点"
|
||||
},
|
||||
{
|
||||
"id": "1758631669066_mr87yjkdq",
|
||||
"className": "BTConditionTest",
|
||||
"name": "测试条件节点",
|
||||
"position": {
|
||||
"x": -200,
|
||||
"y": -60
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "敌人在附近"
|
||||
},
|
||||
{
|
||||
"id": "1758631669066_e5qqjm0s8",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": -60,
|
||||
"y": -40
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "攻击"
|
||||
},
|
||||
{
|
||||
"id": "1758631669066_g6lvqwonn",
|
||||
"className": "BTTestNode2",
|
||||
"name": "空行为节点",
|
||||
"position": {
|
||||
"x": 80,
|
||||
"y": -120
|
||||
},
|
||||
"parameters": {},
|
||||
"children": [],
|
||||
"alias": "巡逻"
|
||||
}
|
||||
],
|
||||
"connections": [
|
||||
{
|
||||
"id": "conn_1758631669066_ioakn40wn",
|
||||
"sourceNodeId": "1758631669066_yqo3wjnns",
|
||||
"targetNodeId": "1758631669066_mr87yjkdq",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758631669066_x29ua1dz1",
|
||||
"sourceNodeId": "1758631669066_247k1fo68",
|
||||
"targetNodeId": "1758631669066_yqo3wjnns",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758631669066_m60t8xsq3",
|
||||
"sourceNodeId": "1758631669066_yqo3wjnns",
|
||||
"targetNodeId": "1758631669066_e5qqjm0s8",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
},
|
||||
{
|
||||
"id": "conn_1758631669066_3zbf492g0",
|
||||
"sourceNodeId": "1758631669066_247k1fo68",
|
||||
"targetNodeId": "1758631669066_g6lvqwonn",
|
||||
"sourcePointType": "child",
|
||||
"targetPointType": "parent"
|
||||
}
|
||||
],
|
||||
"canvasScale": 1.2507982082066933,
|
||||
"canvasOffset": {
|
||||
"x": 465.5,
|
||||
"y": 644.8338118617028
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user