dojo
dojo copied to clipboard
Add write schema 1.5
trafficstars
Description
Added the write schema method to dojo to write part of a model efficiently
Related issue
Tests
- [x] Yes
- [ ] No, because they aren't needed
- [ ] No, because I need help
Added to documentation?
- [ ] README.md
- [ ] Dojo Book
- [ ] No documentation needed
Checklist
- [x] I've formatted my code (
scripts/rust_fmt.sh,scripts/cairo_fmt.sh) - [ ] I've linted my code (
scripts/clippy.sh,scripts/docs.sh) - [x] I've commented my code
- [ ] I've requested a review after addressing the comments
Summary by CodeRabbit
-
New Features
- Added support for schema-based partial model updates and batch member updates, including new methods for writing and reading schemas.
- Introduced a new event type for tracking batch member updates.
- Added new schema and model structures for more flexible data handling.
- Added a new method to update player configuration items in the example project.
- Added new configuration file for example project setup.
-
Bug Fixes
- Improved event handling and serialization for new schema events.
-
Tests
- Added comprehensive tests for schema-based reading and writing, including equality checks and partial updates.
-
Documentation
- Updated manifests and configuration files to reflect new features and changes.
-
Style
- Enhanced code style with additional trait derivations for equality comparisons.
- Reformatted serialization and deserialization code for improved readability.