Closed
Description
What problem does this solve or what need does it fill?
Custom commands are cumbersome and bulky to work with. See book draft for current design.
What solution would you like?
impl Command for <impl FnOnce(&mut World)>
This could be used for simple one-off use-cases where the whole struct + trait extension pattern is too heavy.
What alternative(s) have you considered?
Running systems as commands has similar effects, see #2234. However, it has higher overhead and is not well-suited to reusing custom entity spawning / other archetype modifying logic (unless we use it to insert new exclusive systems).
Additional context
Idea credit @TheRawMeatball.