change decorator name
This commit is contained in:
@@ -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<String>) {
|
||||
var CVarMap:Map<String, CVar> = ConVar.getCVarMap();
|
||||
var keys:Array<String> = ConVar.getCVarNames();
|
||||
@@ -27,7 +27,7 @@ class ConVars_Engine {
|
||||
}
|
||||
}
|
||||
|
||||
@:command("test")
|
||||
@:ConCmd("test")
|
||||
public static function testCommand() {
|
||||
// Command implementation
|
||||
trace("Test Output");
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user