RichoDemus/bevy-console

Create unified trait for ConsoleCommands

Closed this issue · 1 comments

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 {}