Esempio n. 1
0
 public static bool TryGetCommand(string commandName, out MyCommand command)
 {
     return(m_handler.TryGetCommand(commandName, out command));
 }
Esempio n. 2
0
 public static void AddCommand(MyCommand command)
 {
     m_handler.AddCommand(command);
 }
 public static bool TryGetCommand(string commandName, out MyCommand command)
 {
     return m_handler.TryGetCommand(commandName, out command);
 }
 public static void AddCommand(MyCommand command)
 {
     m_handler.AddCommand(command);
 }
Esempio n. 5
0
 public void AddCommand(MyCommand command)
 {
     if (m_commands.ContainsKey(command.Prefix()))
         m_commands.Remove(command.Prefix());
     m_commands.Add(command.Prefix(), command);
 }
Esempio n. 6
0
 public bool TryGetCommand(string commandName, out MyCommand command)
 {
     if (!m_commands.ContainsKey(commandName))
     {
         command = null;
         return false;
     }
     command = m_commands[commandName];
     return true;
 }