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
While using bevy_ecs, I want to add entities that has different sets of components attached to them.
This means that what I'd ideally want, is a way to construct a builder, around a function, but the resulting struct should atleast derive(Bundle).
@CGMossa Could you elaborate a bit more?
The final struct that a buildstructor builder spits out is not derived, it is the result of a constructor being called. Thus you can put derives on that struct no problem.
Probably some code examples would help me understand.
BrynCooke
changed the title
Support arbitrary functions
Support free functions
Aug 8, 2022
Maybe we can support functions that are not on an impl
Alternative 1:
Directly on
fn
outside of impl.Alternative 2:
Still require an impl. Allow derivation of proxy method:
The text was updated successfully, but these errors were encountered: