forked from nonsensical-dev/zenyx-engine
parent
0e255ea359
commit
f286a2b624
17 changed files with 405 additions and 106 deletions
|
@ -1,12 +1,23 @@
|
|||
use commands::{ClearCommand, CounterCommand, ExecFile, ExitCommand, HelpCommand};
|
||||
use commands::{ClearCommand, CounterCommand, ExecFile, ExitCommand, HelpCommand, PanicCommmand};
|
||||
use handler::{COMMAND_MANAGER, Category};
|
||||
|
||||
use crate::commands;
|
||||
|
||||
pub mod commands;
|
||||
pub mod input;
|
||||
pub mod handler;
|
||||
|
||||
pub mod input;
|
||||
|
||||
pub fn setup() {
|
||||
commands!(HelpCommand,ClearCommand,ExitCommand,ExecFile,CounterCommand);
|
||||
commands!(
|
||||
HelpCommand,
|
||||
ClearCommand,
|
||||
ExitCommand,
|
||||
CounterCommand,
|
||||
PanicCommmand
|
||||
);
|
||||
let cat = Category::new("cr", "Core", "Core commands");
|
||||
COMMAND_MANAGER.write().add_category(cat.clone());
|
||||
COMMAND_MANAGER
|
||||
.write()
|
||||
.add_command_with_category(Box::new(ExecFile), cat.clone());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue