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

Add QueuedState resource #47

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

AnActualEmerald
Copy link

Add a QueuedState resource that is only available to exit systems which contains the state being transitioned to. Somewhat related to #8 which has been reverted since it was closed.

Also cargo fmt happened, I can undo the formatting if needed 😅

@inodentry
Copy link
Contributor

Yes, please no cargo fmt. I can't review if the diff contains a lot of noise.

@AnActualEmerald
Copy link
Author

Done, sorry about that. Looking at it again this is a pretty naive implementation, I don't know how much overhead is involved in adding/remove resources but that could be an issue performance-wise if there are a lot of exit systems. I think it would be relatively easy to prevent unneeded operations on the world if you decide this is something you want to include at all.

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

Successfully merging this pull request may close these issues.

2 participants