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

Support serde #6

Open
toyboot4e opened this issue Jul 16, 2022 · 0 comments
Open

Support serde #6

toyboot4e opened this issue Jul 16, 2022 · 0 comments

Comments

@toyboot4e
Copy link
Owner

Implement serde for toecs::World and try hot reloading!

Use case

Run your toecs-based game from a host crate. Recompile the game and

  1. Serialize the toecs-based game
  2. Reload the toecs-based game library
  3. Deserialize the last data

How to implement serde

ECS serde support may be one of the followings:

  1. Directly serialize and deserialze the World
    This is not human-readable and not good for backward-compatibilities, but it would work out of the box.

  2. Use intermediate data format such as DynamicScene in Bevy
    This is human-readable and better for backward-compatibilities, but there would be lots more things to consider.

This time I'll go with the 1: direct serde support.

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

No branches or pull requests

1 participant