Crates.io | bevy_serde_macros |
lib.rs | bevy_serde_macros |
version | 0.2.2 |
source | src |
created_at | 2023-11-27 13:25:11.446602 |
updated_at | 2023-11-29 12:57:28.959512 |
description | Macros for easing use of serde on bevy entities and components |
homepage | https://github.com/bbarker/bevy_serde_macros |
repository | https://github.com/bbarker/bevy_serde_macros |
max_upload_size | |
id | 1050421 |
size | 30,619 |
This crate lets you serialize specified components and their associated entities using a "list" of components, as well as the marked entities you wish to serialize. The result is that the intersection of marked entities and specified components are serialized.
Though this currently targets bevy ECS only, other aspects of bevy may be added in the future.
See the tests for usage examples (save_game
and load_game
). Currently, the
list of components is specified by a macro that the user must implement
(named execute_with_type_list
in the examples).
execute_with_type_list!
,
with credit to Michael F. Bryan - see code comments for details.