Exemplo n.º 1
0
        private Console()
        {
            m_commands     = new CommandTree();
            m_output       = new List <string>();
            m_history      = new List <string>();
            m_commandQueue = new Queue <QueuedCommand>();

            RegisterAttributes();
        }
Exemplo n.º 2
0
        private Console()
        {
            m_commands = new CommandTree();
              m_output = new List<string>();
              m_history = new List<string>();
              m_commandQueue = new Queue<QueuedCommand>();

              RegisterAttributes();
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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);
        }