forked from nonsensical-dev/zenyx-engine
Added a file for zlua and made a new function
This commit is contained in:
parent
3766da6bcf
commit
067048cf54
4 changed files with 106 additions and 93 deletions
|
@ -1,13 +1,15 @@
|
|||
use commands::{
|
||||
ClearCommand, CounterCommand, ExecFile, ExitCommand, HelpCommand, PanicCommmand, ZLua,
|
||||
ClearCommand, CounterCommand, ExecFile, ExitCommand, HelpCommand, PanicCommmand
|
||||
};
|
||||
use handler::{COMMAND_MANAGER, Category};
|
||||
use zlua::ZLua;
|
||||
|
||||
use crate::commands;
|
||||
|
||||
pub mod commands;
|
||||
pub mod handler;
|
||||
pub mod input;
|
||||
pub mod zlua;
|
||||
|
||||
pub fn setup() {
|
||||
commands!(
|
||||
|
@ -16,7 +18,7 @@ pub fn setup() {
|
|||
ExitCommand,
|
||||
CounterCommand,
|
||||
PanicCommmand,
|
||||
ZLua
|
||||
zlua::ZLua
|
||||
);
|
||||
let cat = Category::new("cr", "Core", "Core commands");
|
||||
COMMAND_MANAGER.write().add_category(cat.clone());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue