* Adds an agent block.
(id: string, position?: Position, name?: string)
| 79 | * Adds an agent block. |
| 80 | */ |
| 81 | addAgent(id: string, position?: Position, name?: string): this { |
| 82 | this.blocks[id] = createAgentBlock({ |
| 83 | id, |
| 84 | name: name ?? id, |
| 85 | position: position ?? { x: 0, y: 0 }, |
| 86 | }) |
| 87 | return this |
| 88 | } |
| 89 | |
| 90 | /** |
| 91 | * Adds a condition block. |
no test coverage detected