build project in command line
This commit is contained in:
1 parent
da41704322
commit
a0d0ca0ca9
5 files changed
+110
-11
No files matched your search
+16
-5
@@ -1,10 +1,21 @@
|
||||
import { Context, NodeDef } from "@/behavior3/src/behavior3";
|
||||
import { Context, Node, NodeDef } from "@/behavior3/src/behavior3";
|
||||
import { DeepReadonly } from "../behavior3/src/behavior3/context";
|
||||
|
||||
class NodeContext extends Context {
|
||||
loadTree(path: string): Promise<Node> {
|
||||
throw new Error("Method not implemented.");
|
||||
}
|
||||
}
|
||||
|
||||
export const zhNodeDef = () => {
|
||||
const context = new Context();
|
||||
const defs: NodeDef[] = [];
|
||||
for (const v of context.processResolvers.values()) {
|
||||
const descriptor = v.descriptor;
|
||||
const context = new (class extends Context {
|
||||
loadTree(path: string): Promise<Node> {
|
||||
throw new Error("Method not implemented.");
|
||||
}
|
||||
})();
|
||||
const defs: DeepReadonly<NodeDef>[] = [];
|
||||
for (const k in context.nodeDefs) {
|
||||
const descriptor = context.nodeDefs[k];
|
||||
defs.push(descriptor);
|
||||
}
|
||||
defs.sort((a, b) => a.name.localeCompare(b.name));
|
||||
|
||||
Reference in new issue
Block a user