viridia / bevy_reactor

Fine-grained reactivity framework for Bevy.
79 stars 3 forks source link

Change Mutables to use generic Components #2

Closed viridia closed 4 months ago

viridia commented 7 months ago

Currently mutable values are boxed Anys, but if we make the mutable type generic, this should not be needed. We will, however, have to store the component id in the Mutable handle because each component type will have a different id. The tracking scope can then treat mutables just like any other component. (Need to finish up tracking scope support for components too).

viridia commented 7 months ago

This is actually more complex than I realized due to the need to install a system for each generic type to commit the transactions.