From 66e6f9747dec0495eba918e35c92888c81388f71 Mon Sep 17 00:00:00 2001 From: hybridherbst Date: Wed, 13 Nov 2024 14:26:13 +0100 Subject: [PATCH] fix: flow/setDelay uses "done", not "complete" --- src/BasicBehaveEngine/nodes/flow/SetDelay.ts | 2 +- src/authoring/AuthoringNodeSpecs.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BasicBehaveEngine/nodes/flow/SetDelay.ts b/src/BasicBehaveEngine/nodes/flow/SetDelay.ts index 0d06f21..0641d6b 100644 --- a/src/BasicBehaveEngine/nodes/flow/SetDelay.ts +++ b/src/BasicBehaveEngine/nodes/flow/SetDelay.ts @@ -36,7 +36,7 @@ export class SetDelay extends BehaveEngineNode { } else { const delayIndex = this.graphEngine.scheduledDelays.length; const delayId = setTimeout(() => { - this.addEventToWorkQueue(this.flows.completed); + this.addEventToWorkQueue(this.flows.done); }, duration * 1000); this.graphEngine.pushScheduledDelay(delayId); this._runningDelayIndices.push(delayIndex); diff --git a/src/authoring/AuthoringNodeSpecs.ts b/src/authoring/AuthoringNodeSpecs.ts index 169ee39..7cabb1e 100644 --- a/src/authoring/AuthoringNodeSpecs.ts +++ b/src/authoring/AuthoringNodeSpecs.ts @@ -984,7 +984,7 @@ export const flowNodeSpecs: IAuthoringNode[] = [ output: { flows: [ { - id: "completed", + id: "done", description: "The flow to be followed after the delay", }, {