예제 #1
0
 public static bool TryGetCommand(string commandName, out MyCommand command)
 {
     return(m_handler.TryGetCommand(commandName, out command));
 }
예제 #2
0
 public static void AddCommand(MyCommand command)
 {
     m_handler.AddCommand(command);
 }
예제 #3
0
 public static bool TryGetCommand(string commandName, out MyCommand command)
 {
     return m_handler.TryGetCommand(commandName, out command);
 }
예제 #4
0
 public static void AddCommand(MyCommand command)
 {
     m_handler.AddCommand(command);
 }
예제 #5
0
 public void AddCommand(MyCommand command)
 {
     if (m_commands.ContainsKey(command.Prefix()))
         m_commands.Remove(command.Prefix());
     m_commands.Add(command.Prefix(), command);
 }
예제 #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;
 }