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

Generic state update handlers? #234

Open
tmedwards opened this issue May 6, 2023 · 0 comments
Open

Generic state update handlers? #234

tmedwards opened this issue May 6, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request investigate Information gathering is needed

Comments

@tmedwards
Copy link
Owner

Currently, there's no way to update the game state if the game and state versions desynchronize in-play. For example, if the game is network-hosted and is updated with state breaking changes during someone's play session.

Between-play updates, via saves, are handled via Config.saves.version and Save.onLoad handlers.

Moving the Save machinery to State, as a more generic mechanism that can handle in-play updates too, seems like a good idea.

That said. There's probably no real need for a State equivalent to Save.onSave handlers, so that's a conundrum.

@tmedwards tmedwards self-assigned this May 6, 2023
@tmedwards tmedwards added enhancement New feature or request investigate Information gathering is needed labels May 6, 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 investigate Information gathering is needed
Projects
None yet
Development

No branches or pull requests

1 participant