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

14-loading-state #25

Merged
merged 3 commits into from
Oct 17, 2022
Merged

14-loading-state #25

merged 3 commits into from
Oct 17, 2022

Conversation

milkybytes
Copy link
Owner

@milkybytes milkybytes commented Oct 17, 2022

Partially resolves #14

Considerations:

  • There needs to be a way for VotingHandler to check the progress of the effect, as currently it manages its own logic for the remaining duration. I believe it should get the remaining seconds from ChaosHandler / its currently running effect. At the moment as of this change, VotingHandler gets a reference to the current effect result of triggering the effect. It could use this reference to get a remaining_seconds value from it if we're not in an accepting votes period.

^-- Logic to pause the current effect and have it carry over to VotingHandler's logic was added with this commit, however there may be some wonky-ness with this implementation. But it's much preferable to the previous implementation.

Unrelated, but I also think VotingHandler should be broken up into two classes. Currently it handles both the logic for voting as well as managing tasks. Perhaps a TaskHandler class should be defined.

@milkybytes milkybytes merged commit 2171d1a into main Oct 17, 2022
@milkybytes milkybytes deleted the 14-loading-state branch October 17, 2022 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] Pause Current Effect / Voting Round whilst the game is in a 'Loading' state
1 participant