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); }
public static bool TryGetCommand(string commandName, out MyCommand command) { return m_handler.TryGetCommand(commandName, out command); }
public void AddCommand(MyCommand command) { if (m_commands.ContainsKey(command.Prefix())) m_commands.Remove(command.Prefix()); m_commands.Add(command.Prefix(), command); }
public bool TryGetCommand(string commandName, out MyCommand command) { if (!m_commands.ContainsKey(commandName)) { command = null; return false; } command = m_commands[commandName]; return true; }