Ejemplo n.º 1
0
        public static string[] Tokenize(string line)
        {
            GameInterface.Cmd_TokenizeString(line);
            var argc = GameInterface.Cmd_Argc();

            if (argc == 0)
            {
                return(new string[0]);
            }
            var tokenized = new string[argc];

            for (int i = 0; i < argc; i++)
            {
                tokenized[i] = GameInterface.Cmd_Argv(i);
            }
            GameInterface.Cmd_EndTokenizedString();
            return(tokenized);
        }