behaviour refactoring. storage beahavior added

This commit is contained in:
azykov@mail.ru
2026-09-03 12:31:23 +03:00
parent 557d22517a
commit f4c1eedf62
10 changed files with 158 additions and 120 deletions
+1 -1
View File
@@ -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],