diff --git a/hGameTest/src/engine/ConVars_Engine.hx b/hGameTest/src/engine/ConVars_Engine.hx index 2c623779..8b86f665 100644 --- a/hGameTest/src/engine/ConVars_Engine.hx +++ b/hGameTest/src/engine/ConVars_Engine.hx @@ -13,7 +13,7 @@ import game.ui.console.Console; // @:build(engine.macros.CCmdDecorator.build()) // No longer needed because we added the build macro to the project.xml class ConVars_Engine { - @:command("list") + @:ConCmd("list") public static function listCommands(args:Array) { var CVarMap:Map = ConVar.getCVarMap(); var keys:Array = ConVar.getCVarNames(); @@ -27,7 +27,7 @@ class ConVars_Engine { } } - @:command("test") + @:ConCmd("test") public static function testCommand() { // Command implementation trace("Test Output"); diff --git a/hGameTest/src/engine/macros/CCmdDecorator.hx b/hGameTest/src/engine/macros/CCmdDecorator.hx index a54d4a75..129f9878 100644 --- a/hGameTest/src/engine/macros/CCmdDecorator.hx +++ b/hGameTest/src/engine/macros/CCmdDecorator.hx @@ -9,7 +9,7 @@ class CCmdDecorator { var pos = Context.currentPos(); for (field in fields) { - var meta = field.meta != null ? Lambda.find(field.meta, function(m) return m.name == ":command") : null; + var meta = field.meta != null ? Lambda.find(field.meta, function(m) return m.name == ":ConCMD") : null; if (meta != null) { trace(meta); switch field.kind { diff --git a/hGameTest/src/game/video/Mode.hx b/hGameTest/src/game/video/Mode.hx index bebf6b94..54afc3ed 100644 --- a/hGameTest/src/game/video/Mode.hx +++ b/hGameTest/src/game/video/Mode.hx @@ -15,7 +15,7 @@ class Mode public static function setVideoMode(width:Int, height:Int, fs:Int = null){ getWindow().resize(width,height); } - @:command("mat_setvideomode") + @:ConCmd("mat_setvideomode") public static function cCmdMatSetVideoMode(args:Array){ Mode.setVideoMode(Std.parseInt(args[0]), Std.parseInt(args[1]), Std.parseInt(args[2])); }