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

Add serialize/deserialize to some input types #281

Merged
merged 1 commit into from
Aug 22, 2020
Merged

Add serialize/deserialize to some input types #281

merged 1 commit into from
Aug 22, 2020

Conversation

TehPers
Copy link
Contributor

@TehPers TehPers commented Aug 22, 2020

Adds derives for Serialize and Deserialize to KeyCode and MouseButton, configurable by the "serialization" feature.

Since bevy_ecs already depends on serde, it might be worth considering if a feature is really needed for this.

Addresses #174

@cart
Copy link
Member

cart commented Aug 22, 2020

I like it. Giving people the option to "globally disable" serde seems like the right choice. We can slowly start propagating that throughout the project.

@cart
Copy link
Member

cart commented Aug 22, 2020

Thanks!

@cart cart merged commit 7a79dcc into bevyengine:master Aug 22, 2020
@karroffel karroffel added C-Code-Quality A section of code that is hard to understand or change C-Dependencies A change to the crates that Bevy depends on labels Aug 22, 2020
BimDav pushed a commit to BimDav/bevy that referenced this pull request Aug 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Code-Quality A section of code that is hard to understand or change C-Dependencies A change to the crates that Bevy depends on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants