Update behavior3 lib
This commit is contained in:
1 parent
1c1bb56bb6
commit
9d0261fcd7
4 files changed
+6
-4
No files matched your search
@@ -1,6 +1,8 @@
|
||||
# vscode 插件
|
||||
|
||||
[Behavior3 Editor](https://marketplace.visualstudio.com/items?itemName=codetypes.vscode-behavior3)
|
||||
[Behavior3 Editor](https://marketplace.visualstudio.com/items?itemName=codetypess.vscode-behavior3)
|
||||
|
||||

|
||||
|
||||
# 行为树编辑器
|
||||
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 532 KiB |
+1
-1
Submodule src/behavior3 updated: fc608994fd...b7b4e52aff.
@@ -1,5 +1,5 @@
|
||||
import { Node, NodeDef } from "../behavior3/src/behavior3";
|
||||
import { Context, DeepReadonly } from "../behavior3/src/behavior3/context";
|
||||
import { Context } from "../behavior3/src/behavior3/context";
|
||||
|
||||
export const zhNodeDef = () => {
|
||||
const context = new (class extends Context {
|
||||
@@ -7,7 +7,7 @@ export const zhNodeDef = () => {
|
||||
throw new Error("Method not implemented.");
|
||||
}
|
||||
})();
|
||||
const defs: DeepReadonly<NodeDef>[] = [];
|
||||
const defs: NodeDef[] = [];
|
||||
for (const k in context.nodeDefs) {
|
||||
const descriptor = context.nodeDefs[k];
|
||||
defs.push(descriptor);
|
||||
|
||||
Reference in new issue
Block a user