发布0.1.3版本,修改节点基类的注释

This commit is contained in:
gongxh
2025-10-14 17:08:01 +08:00
parent 05b5c7fad5
commit 99ba5a210b
3 changed files with 2 additions and 11 deletions

View File

@@ -5,7 +5,7 @@
"version": "3.8.6"
},
"dependencies": {
"kunpocc-behaviortree": "^0.1.1",
"kunpocc-behaviortree": "^0.1.3",
"ts-node": "^10.9.2"
}
}

View File

@@ -1,6 +1,6 @@
{
"name": "kunpocc-behaviortree",
"version": "0.1.2",
"version": "0.1.3",
"description": "行为树",
"main": "./dist/kunpocc-behaviortree.cjs",
"module": "./dist/kunpocc-behaviortree.mjs",

View File

@@ -115,9 +115,6 @@ export abstract class BTNode implements IBTNode {
return this._local.getEntity();
}
/**
* 设置获取全局黑板数据
*/
public set<T>(key: string, value: T): void {
this._local.set(key, value);
}
@@ -126,9 +123,6 @@ export abstract class BTNode implements IBTNode {
return this._local.get(key);
}
/**
* 设置获取树根节点的黑板数据
*/
public setRoot<T>(key: string, value: T): void {
this._root.set(key, value);
}
@@ -137,9 +131,6 @@ export abstract class BTNode implements IBTNode {
return this._root.get(key);
}
/**
* 设置全局黑板数据
*/
public setGlobal<T>(key: string, value: T): void {
globalBlackboard.set(key, value);
}