Esempio n. 1
0
 public static bool TryGetCallFunctionCommandFast(string name, List <string> args, out DHJassCommand functionCall)
 {
     functionCall = new DHJassCallFunctionCommand(name, args);
     return(true);
 }
Esempio n. 2
0
        public DHJassCallOperation(List<string> lines, ref int line, List<string> args)
        {
            // concat this line with next if it contains a string with newline character
            // the determining factor is odd number of quotes

            int quotes = -1;
            string result = "";
            string currentLine = args[0];
            do
            {
                if (quotes != -1)
                {
                    currentLine = lines[++line];
                    result += Environment.NewLine + currentLine;
                }
                else
                {
                    quotes = 0;
                    result += currentLine;
                }

                quotes += DHJassSyntax.getQuoteCountFast(currentLine);
            }
            while (quotes % 2 != 0);

            command = new DHJassCallFunctionCommand(result);
        }
Esempio n. 3
0
 public static bool TryGetCallFunctionCommandFast(string name, List<string> args, out DHJassCommand functionCall)
 {
     functionCall = new DHJassCallFunctionCommand(name, args);
     return true;
 }