private Console() { m_commands = new CommandTree(); m_output = new List <string>(); m_history = new List <string>(); m_commandQueue = new Queue <QueuedCommand>(); RegisterAttributes(); }
private Console() { m_commands = new CommandTree(); m_output = new List<string>(); m_history = new List<string>(); m_commandQueue = new Queue<QueuedCommand>(); RegisterAttributes(); }
private void _add(string[] commands, int command_index, CommandAttribute cmd) { if (commands.Length == command_index) { m_command = cmd; return; } string token = commands[command_index]; if (!m_subcommands.ContainsKey(token)) { m_subcommands[token] = new CommandTree(); } m_subcommands[token]._add(commands, command_index + 1, cmd); }
private void _add(string[] commands, int command_index, CommandAttribute cmd) { if (commands.Length == command_index) { m_command = cmd; return; } string token = commands[command_index]; if (!m_subcommands.ContainsKey(token)){ m_subcommands[token] = new CommandTree(); } m_subcommands[token]._add(commands, command_index + 1, cmd); }