bevy
bevy copied to clipboard
Clean up one-shot systems API
There are a few inconsistencies and gaps in the current one-shot systems API:
- There should be a
Commands::unregister_system_cachedmethod Commands::andWorld::run_system_with_inputshould be renamed torun_system_withfor consistencyCommands::andWorld::run_system_once_withshould accept(system, input)in that order rather than(input, system)for consistency
Hi, I haven't contributed yet, and would like to tackle this issue. Cheers.
This is scope creep, but I'd like to propose that the common functionality between World and Commands for running one-shot systems be broken out into a trait. Ever since 0.13, it's not been possible to access Command objects directly for the built-in APIs, including the one-shot systems API, and therefore they cannot be passed around as deferred operations.