Beispiel #1
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="fileName">Script file name</param>
 /// <param name="searchDirs">Extra ScriptLibrary directory(ies) </param>
 public ScriptParser(string fileName, string[] searchDirs)
 {
     if (CSExecutor.ScriptCacheDir == "")             //ust in case if ScriptParser is used outside of the script engine
     {
         CSExecutor.SetScriptCacheDir(fileName);
     }
     Init(fileName, searchDirs);
 }
Beispiel #2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="fileName">Script file name</param>
 /// <param name="searchDirs">Extra ScriptLibrary directory </param>
 public ScriptParser(string fileName, string[] searchDirs)
 {
     //if ((CSExecutor.ExecuteOptions.options != null && CSExecutor.options.useSmartCaching) && CSExecutor.ScriptCacheDir == "") //in case if ScriptParser is used outside of the script engine
     if (CSExecutor.ScriptCacheDir == "") //in case if ScriptParser is used outside of the script engine
     {
         CSExecutor.SetScriptCacheDir(fileName);
     }
     Init(fileName, searchDirs);
 }