bevy-console
bevy-console copied to clipboard
Create unified trait for ConsoleCommands
trafficstars
Writing code like TC: CommandName + CommandArgs + CommandHelp is tedious and unclear.
Consider adding a ConsoleCommand: CommandName + CommandArgs + CommandHelp trait, and then creating blanket impl for it.
I would also toss in the Resource bound, so then the SystemParam impl works correctly.
My version:
trait Commandlike: Resource + CommandName + CommandArgs + CommandHelp {}
impl<T: Resource + CommandName + CommandArgs + CommandHelp> Commandlike for T {}