pub type ConsoleCommand = fn(&World, &Args<'_>, &mut ConsoleOut<'_>) -> Result<(), ConsoleError>;Expand description
A command of the game’s in the debug console: a function of the world,
the arguments typed, checked against the command’s usage, and where to
print, added with
App::add_console_command. An error
it returns (ConsoleError::Failed with why) is printed in red.