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

Use State design pattern #63

Open
MikhaD opened this issue Jan 14, 2023 · 0 comments
Open

Use State design pattern #63

MikhaD opened this issue Jan 14, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@MikhaD
Copy link
Owner

MikhaD commented Jan 14, 2023

Currently game mode information is stored in a global object, and creating new modes requires editing in multiple places.
I would like to replace this with a less fragile state based system. Anything that needs information on the current state can check the state object instead of having to use the mode number as an index in the array of mode data objects

@MikhaD MikhaD self-assigned this Jan 14, 2023
@MikhaD MikhaD added the enhancement New feature or request label Jan 14, 2023
@MikhaD MikhaD added this to the 1.6.0 milestone Jan 14, 2023
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