You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"with_children" does not support adding single component #277
This will run into duplicate implementation, partially because we don't have trait specialization (yet, potentially ever). T: Component bound means everything that can be a component - including all the tuples that DynamicBundle is implemented for elsewhere.
It can be circumvented with a "marker" generic parameter in DynamicBundle trait, but this could pollute all APIs that use DynamicBundle and potentially Bundle with that rather confusing parameter. I'm almost certain it won't come up in normal use of the public API, but it would show up in documentation.
Activity
Ratysz commentedon Aug 22, 2020
This will run into duplicate implementation, partially because we don't have trait specialization (yet, potentially ever).
T: Componentbound means everything that can be a component - including all the tuples thatDynamicBundleis implemented for elsewhere.It can be circumvented with a "marker" generic parameter in
DynamicBundletrait, but this could pollute all APIs that useDynamicBundleand potentiallyBundlewith that rather confusing parameter. I'm almost certain it won't come up in normal use of the public API, but it would show up in documentation.ryo33 commentedon Sep 30, 2020
I thought about
.with_child(BulletEmitter::new()), which wraps the currentwith_children, but it's too specific.In that case, I prefer to;
BulletEmitterComponents.to_bundle(self)forBulletEmitterif it seems never used with other components.alice-i-cecile commentedon Apr 3, 2021
This should be solved with the new Commands API in 0.5. See #1703.
alice-i-cecile commentedon Apr 16, 2021
Fixed in 0.5