GetCommandName() public method

public GetCommandName ( ) : string
return string
Ejemplo n.º 1
0
 public static bool CommandExists(Command command)
 {
     return registeredcmds.ContainsKey(command.GetCommandName());
 }
Ejemplo n.º 2
0
 public static bool RegisterCommand(Command command)
 {
     if(CommandExists(command)){
         return false;
     }
     registeredcmds.Add(command.GetCommandName(), command);
     return true;
 }
Ejemplo n.º 3
0
 public static bool UnregisterCommand(Command command)
 {
     if(CommandExists(command)){
         registeredcmds.Remove(command.GetCommandName());
         return true;
     }
     return false;
 }
Ejemplo n.º 4
0
 public static bool OverrideCommand(Command command)
 {
     if(CommandExists(command)){
         registeredcmds[command.GetCommandName()] = command;
         return true;
     }
     return false;
 }