コード例 #1
0
 /// <summary>
 /// Parse a string of text continuing chat definitions
 /// </summary>
 public void ParseText(string text, bool disableValidators = false)
 {
     if (text.EndsWith(".gs", Util.INV))
     {
         Warn("This text looks "                                 // tmp
              + "like a file name, did you mean to use ParseFile()?\n");
     }
     this.validatorsDisabled = disableValidators;
     parser.Parse(text.Split(ChatParser.LineBreaks, StringSplitOptions.None));
 }