{"repo":"mintlu8/bevy_serde_lens","free":true,"listed":false,"github":"https://github.com/mintlu8/bevy_serde_lens","clone":"git clone https://github.com/mintlu8/bevy_serde_lens.git","description":"Blazingly fast, schema based human-readable serialization crate for the bevy engine.","language":"Rust","stars":39,"topics":["bevy","rust","save","serde","serialization"],"license":"Apache-2.0","category":"game-templates","readme_excerpt":"bevy serde lens Blazingly fast, schema based and human-readable serialization crate for the bevy engine. Features Stateful serialization and deserialization with world access. No systems, no plugins. Blazingly fast (compared to DynamicScene ). Treat an Entity , its Component s and children as a single serde object. Deserialize trait objects like Box , as an alternative to typetag . Supports every serde format using familiar syntax. Serialize Handle s and provide a generalized data interning interface. No reflection needed. Getting Started Imagine we have a typical Character bundle. First we derive BevyObject : #[bevy object(query)] This indicates we are serializing a query instead of a hierarchical tree, which improves performance. To serialize we simply do: This finds all entities that fits the QueryFilter of the bundle and serializes them in an array. To deserialize we use deserialize scope : This statement spawns new entities in the world and fills them with deserialized data. You might want to delete current entities before loading new ones, to delete all associated entities of a serialization: To save multiple types of objects in a batch, create a batch serialization type with the batch! macro. This saves each type in a map entry: Advanced Serialization BevyObject is not just a clone of Bundle , we support additional types. impl BevyObject : Components are automatically BevyObject and BevyObject can contain multiple other BevyObject s. Maybe can be used if an item may or","default_branch":null,"files":null,"tree":[],"storefront":"/r/mintlu8","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mintlu8/bevy_serde_lens/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}