magicblock-labs / bolt

High-performance, Composable framework for Fully On Chain Games and Autonomous Worlds
https://book.boltengine.gg
MIT License
31 stars 7 forks source link

:sparkles: Simplify component_deserialize macro #34

Closed GabrielePicco closed 6 months ago

GabrielePicco commented 6 months ago

Simplify component_deserialize macro

Status Type ⚠️ Core Change Issue
Ready Feature/Refactor No -

Problem

component_deserialize tipically used with copy and clone derives

Solution

Automatically add copy and clone derive when using component_deserialize

Other changes

Add a new constructor which allows to build component without bolt_metadata field