Skip to content

Commit

Permalink
feat: override onEvent in while
Browse files Browse the repository at this point in the history
  • Loading branch information
tdeignan1 committed Sep 25, 2023
1 parent 26858bd commit 3ec9913
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/nodes/decorators/While.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ export class While<S extends BlueshellState, E> extends Decorator<S, E> {
}
}

protected onEvent(state: S, event: E): ResultCode {
return this.handleChild(state, event);
}

get symbol(): string {
return '↻';
}
Expand Down

0 comments on commit 3ec9913

Please sign in to comment.