mirror of
https://github.com/gongxh0901/kunpocc-behaviortree.git
synced 2025-12-26 16:48:56 +00:00
发布0.1.3版本,修改节点基类的注释
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
"version": "3.8.6"
|
"version": "3.8.6"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"kunpocc-behaviortree": "^0.1.1",
|
"kunpocc-behaviortree": "^0.1.3",
|
||||||
"ts-node": "^10.9.2"
|
"ts-node": "^10.9.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "kunpocc-behaviortree",
|
"name": "kunpocc-behaviortree",
|
||||||
"version": "0.1.2",
|
"version": "0.1.3",
|
||||||
"description": "行为树",
|
"description": "行为树",
|
||||||
"main": "./dist/kunpocc-behaviortree.cjs",
|
"main": "./dist/kunpocc-behaviortree.cjs",
|
||||||
"module": "./dist/kunpocc-behaviortree.mjs",
|
"module": "./dist/kunpocc-behaviortree.mjs",
|
||||||
|
|||||||
@@ -115,9 +115,6 @@ export abstract class BTNode implements IBTNode {
|
|||||||
return this._local.getEntity();
|
return this._local.getEntity();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 设置获取全局黑板数据
|
|
||||||
*/
|
|
||||||
public set<T>(key: string, value: T): void {
|
public set<T>(key: string, value: T): void {
|
||||||
this._local.set(key, value);
|
this._local.set(key, value);
|
||||||
}
|
}
|
||||||
@@ -126,9 +123,6 @@ export abstract class BTNode implements IBTNode {
|
|||||||
return this._local.get(key);
|
return this._local.get(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 设置获取树根节点的黑板数据
|
|
||||||
*/
|
|
||||||
public setRoot<T>(key: string, value: T): void {
|
public setRoot<T>(key: string, value: T): void {
|
||||||
this._root.set(key, value);
|
this._root.set(key, value);
|
||||||
}
|
}
|
||||||
@@ -137,9 +131,6 @@ export abstract class BTNode implements IBTNode {
|
|||||||
return this._root.get(key);
|
return this._root.get(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 设置全局黑板数据
|
|
||||||
*/
|
|
||||||
public setGlobal<T>(key: string, value: T): void {
|
public setGlobal<T>(key: string, value: T): void {
|
||||||
globalBlackboard.set(key, value);
|
globalBlackboard.set(key, value);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user