TheBevyFlock / bevy_cli

A Bevy CLI tool and linter.
https://thebevyflock.github.io/bevy_cli/
Apache License 2.0
52 stars 7 forks source link

Add lint: spawn without StateScoped #108

Open akimakinai opened 2 months ago

akimakinai commented 2 months ago

Forgetting StateScoped(GameState::Playing) somewhere in game logic can be a hard-to-find bug. It would be helpful to have a restriction lint for missing StateScoped component in Command::spawn (or successive insert chains).