Skip to content

Allow external access to StateStages#1053

Closed
sapir wants to merge 1 commit intobevyengine:masterfrom
sapir:allow-external-access-to-state-stages
Closed

Allow external access to StateStages#1053
sapir wants to merge 1 commit intobevyengine:masterfrom
sapir:allow-external-access-to-state-stages

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 core C-Feature A new feature, making something new possible 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

C-Feature A new feature, making something new possible

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants