Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add method to terminate execution of story tree immediately #18

Closed
Atlinx opened this issue Jun 30, 2021 · 0 comments
Closed

Add method to terminate execution of story tree immediately #18

Atlinx opened this issue Jun 30, 2021 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@Atlinx
Copy link
Member

Atlinx commented Jun 30, 2021

A solution to stopping the story would be to force all nodes to check themselves with the StoryDirector before executing. I could also instead set up a pause bool in the ProgramNode that every node checks before executing, although this would permanently terminate execution as there is no way to figure out which node was last executed. But permanently terminating execution might be a good thing -- this feature could be reserved only for throwing errors and would act as a panic button to halt all operations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant