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

Make an unskippable block #21

Open
Atlinx opened this issue Jul 18, 2021 · 0 comments
Open

Make an unskippable block #21

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

Comments

@Atlinx
Copy link
Member

Atlinx commented Jul 18, 2021

The unskippable block will prevent users from skipping any stepped statements within it. A possible implementation would be to first move stepping outside of the story director and into its own service (maybe "StepManager"). Then add the ability for BlockNodes to hold services, and finally make the UnskippableNode attach itself on startup to its Block as a service called "StepManager". This essentially lets the unskippable block intercept calls from statements in a block.

Such a design pattern could help keep code extensible without having to modify existing code. This actually is a form of abstraction similar to how interfaces work since the callers of get_service() only care about getting a service that works -- they do not care about the actual implementation of the service.

@Atlinx Atlinx added the enhancement New feature or request label Jul 18, 2021
@Atlinx Atlinx added this to the v1.2.0 milestone Aug 24, 2021
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