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

Better support for dynamically-generated commands? #71

Open
recatek opened this issue Jul 21, 2024 · 0 comments
Open

Better support for dynamically-generated commands? #71

recatek opened this issue Jul 21, 2024 · 0 comments

Comments

@recatek
Copy link

recatek commented Jul 21, 2024

Currently it seems very difficult to generate commands at runtime (e.g. from reflection on a struct you want to edit fields of). NamedCommand and other similar traits don't take self for example, so you can't read or use values on the command you're configuring as you send it in. You can use the generic Command, but then you can't differentiate by type (e.g. setting a bool vs. setting an int).

It would be handy if bevy_console could relax some of the assumptions that every command is known at compile-time when building.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant