behaviour refactoring. storage beahavior added
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ export async function build2dNodes(units: Unit[], area: { width: number, height:
|
||||
height: NODE_HEIGHT,
|
||||
})),
|
||||
edges: units.flatMap((node) =>
|
||||
node.behaviour.getDisplayInfo().links.map((link, idx) => ({
|
||||
node.behaviour.inputLinks.map((link, idx) => ({
|
||||
id: `${node.behaviour.id}->${link.target}.${idx}`,
|
||||
sources: [node.behaviour.id],
|
||||
targets: [link.target],
|
||||
|
||||
Reference in New Issue
Block a user