IrvingWash / karakuri

2D game engine
MIT License
0 stars 0 forks source link

Registry can't handle wrapped components #3

Open IrvingWash opened 2 weeks ago

IrvingWash commented 2 weeks ago

If user tries to add a component that is wrapped in Box, Vec, etc, the Registry won't be able to tell the difference between those. So Box<T> and Box<K> are considered of the same type.

This currently works for Box<BehaviorComponent> by chance, because BehaviorComponent - is the only dynamic component in the system