Added a file for zlua and made a new function

This commit is contained in:
GhostedGaming 2024-12-23 23:14:11 -05:00 committed by BitSyndicate
parent 3766da6bcf
commit 067048cf54
Signed by untrusted user: bitsyndicate
GPG key ID: 443E4198D6BBA6DE
4 changed files with 106 additions and 93 deletions

View file

@ -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());