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
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. SoBox<T>
andBox<K>
are considered of the same type.This currently works for
Box<BehaviorComponent>
by chance, becauseBehaviorComponent
- is the only dynamic component in the system