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

Allow external access to StateStages #1053

Closed

Conversation

sapir
Copy link
Contributor

@sapir sapir commented Dec 13, 2020

This allows me to e.g. make the update stage a SystemStage in my main app setup, then add more systems to it from plugins.

@sapir sapir mentioned this pull request Dec 13, 2020
@alec-deason
Copy link
Member

When you add systems are you just downcasting to SystemStage and failing if it's something else? Or do you have some other way to handle different kinds of stage?

@sapir
Copy link
Contributor Author

sapir commented Dec 13, 2020

I just always use SystemStages so I downcast and unwrap

@cart
Copy link
Member

cart commented Dec 13, 2020

I'm currently re-thinking a bunch of these apis to be more explicit / easier for scenarios like this. Should have a pr ready soon.

@Moxinilian Moxinilian added A-Core Common functionality for all bevy apps C-Enhancement A new feature labels Dec 15, 2020
@sapir sapir closed this Dec 15, 2020
@sapir sapir deleted the allow-external-access-to-state-stages branch December 15, 2020 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Core Common functionality for all bevy apps C-Enhancement A new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants