SosigScript/src/Scripts/ScriptLoader.cs
/// <summary>
/// Loads the script, then executes it through ScriptExecutor
/// </summary>
Loads the script, then executes it through ScriptExecutor
Loads the script then executes it through ScriptExecutor
public IEnumerator LoadAndExecuteScripts()
        {
            foreach (IEnumerable<ScriptInfo> scriptList in LoadedScripts)
            {
                foreach (var script in scriptList)
                {
                    Executioner exec;
                    yield return exec = new Executioner(script);
                    SosigScript.ActiveScripts.Add(exec);
                }
            }
        }
public IEnumerator LoadAndExecuteScripts ( ) { foreach ( IEnumerable < ScriptInfo > scriptList in LoadedScripts ) { foreach ( var script in scriptList ) { Executioner exec ; yield return exec = new Executioner ( script ) ; SosigScript . ActiveScripts . Add ( exec ) ; } } }
Loads the script, then executes it through ScriptExecutor
Loads the script then executes it through ScriptExecutor