Skip to content
New issue

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

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

Already on GitHub? # to your account

Implement pausable systems #50

Closed
suspistew opened this issue Mar 21, 2021 · 0 comments
Closed

Implement pausable systems #50

suspistew opened this issue Mar 21, 2021 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@suspistew
Copy link
Owner

Actually, the only way to create a pausable system is to specify in each pausable system something like

if myresource.myvalue != 'the value that set it to pause' {
execute the code
}

I want a more convenient way to do this.

I may take the side of do something like this :
By default, I add something like ScionState that will keep a track of what the last state on the pile is.
I also want this state to have an easy way to store basic bool for the user if he wants to.

Then, I'll be able do to something like this :

Scion::app()
           .with_pausable_system(my_system(), |scion_state| scion_state.top_state != 'Pause');
@suspistew suspistew added the enhancement New feature or request label Mar 21, 2021
@suspistew suspistew added this to the 0.2.0-Tetris milestone Mar 21, 2021
suspistew added a commit that referenced this issue Mar 22, 2021
suspistew added a commit that referenced this issue Mar 22, 2021
suspistew added a commit that referenced this issue Mar 22, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant