Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement From<DynamicBundle> and From<DynamicBundleClone> for EntityBuilder{Clone} #242

Open
ten3roberts opened this issue Jan 13, 2022 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@ten3roberts
Copy link
Contributor

ten3roberts commented Jan 13, 2022

This feature would greatly improve the workflow of kickstarting a builder when a function requires one, and the user knows they only need one bundle.

This is used in the project I am making and in hecs-hierarchy to construct entities in tree and so on.

The issue can be circumvented by first creating a builder, and then passing it in to the CreateInfo, however, it would be easier if it could be given a headstart of a bundle, by MyBundle {..}.into() which returns a builder.

One of the usage of builders is as type erased bundles for storage in structs and templates for spawning entities by name later.

@Ralith Ralith added enhancement New feature or request good first issue Good for newcomers labels Jan 13, 2022
@Ralith
Copy link
Owner

Ralith commented Jan 13, 2022

Sounds like a reasonable and straightforward API extension to me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants