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

Ability to Serialize / Deserialize a world snapshot to JSON #762

Open
eanticev opened this issue Jul 6, 2022 · 0 comments
Open

Ability to Serialize / Deserialize a world snapshot to JSON #762

eanticev opened this issue Jul 6, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@eanticev
Copy link

eanticev commented Jul 6, 2022

Describe the problem you are trying to solve.
USER STORY: As a developer trying to implement a snapshot save/restore system that is compatible with a REST API, I want to serialize a world snapshot to JSON and read it back.

Describe the solution you'd like
From Discord: It wouldn't be hard to extend the current ecs_iter_to_json to serialize all components vs. just the components a query asked for. That would make it possible to create an iterator from the snapshot, then serialize that iterator to json.

I'm unsure how to handle the de-serialization case.

This is sort of a duplicate of: #114

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