-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Add unregister_system command
#16340
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
Conversation
|
Welcome, new contributor! Please make sure you've read our contributing guide and we look forward to reviewing your pull request shortly ✨ |
|
Can you add a unit test? |
|
Are there any existing tests to use as an example? I couldn't find any for the related commands other than one doctest example for |
|
If there aren't any tests for |
|
I feel like this shouldn't be called remove_system. That name feels like the opposite of |
|
I could change it to |
|
Both this and the method it calls should be named |
BenjaminBrienen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just wanted to try out the suggestion feature lol
Apply suggestions from code review Co-authored-by: Benjamin Brienen <benjamin.brienen@outlook.com>
|
I think that's everything, assuming checks pass. |
|
Squeezing into 0.15 because it avoids us shipping the bad |
# Objective Fixes #16266 ## Solution Added an `UnregisterSystem` command struct and `Commands::unregister_system`. Also renamed `World::remove_system` and `World::remove_system_cached` to `World::unregister_*` ## Testing It's a fairly simple change, but I tested locally to ensure it actually works. --------- Co-authored-by: Benjamin Brienen <benjamin.brienen@outlook.com>
# Objective Fixes bevyengine#16266 ## Solution Added an `UnregisterSystem` command struct and `Commands::unregister_system`. Also renamed `World::remove_system` and `World::remove_system_cached` to `World::unregister_*` ## Testing It's a fairly simple change, but I tested locally to ensure it actually works. --------- Co-authored-by: Benjamin Brienen <benjamin.brienen@outlook.com>
# Objective Fixes bevyengine#16266 ## Solution Added an `UnregisterSystem` command struct and `Commands::unregister_system`. Also renamed `World::remove_system` and `World::remove_system_cached` to `World::unregister_*` ## Testing It's a fairly simple change, but I tested locally to ensure it actually works. --------- Co-authored-by: Benjamin Brienen <benjamin.brienen@outlook.com>
Objective
Fixes #16266
Solution
Added an
UnregisterSystemcommand struct andCommands::unregister_system. Also renamedWorld::remove_systemandWorld::remove_system_cachedtoWorld::unregister_*Testing
It's a fairly simple change, but I tested locally to ensure it actually works.