示例#1
0
 internal static MacroScriptEngine GetEngineByType(string scriptType)
 {
     MacroScriptEngine mse = new MacroScriptEngine();
     mse.loadRunTime();
     mse.m_engine = mse.m_runTime.GetEngine(scriptType);
     mse.m_exceptionOperations = mse.m_engine.GetService<ExceptionOperations>();
     return mse;
 }
示例#2
0
 internal static MacroScriptEngine LoadEngineByFileExtension(string fileExtension)
 {
     MacroScriptEngine mse = new MacroScriptEngine();
     mse.loadRunTime();
     mse.m_engine = mse.m_runTime.GetEngineByFileExtension(fileExtension);
     mse.m_exceptionOperations = mse.m_engine.GetService<ExceptionOperations>();
     return mse;
 }
示例#3
0
        internal static MacroScriptEngine GetEngineByType(string scriptType)
        {
            MacroScriptEngine mse = new MacroScriptEngine();

            mse.loadRunTime();
            mse.m_engine = mse.m_runTime.GetEngine(scriptType);
            mse.m_exceptionOperations = mse.m_engine.GetService <ExceptionOperations>();
            return(mse);
        }
示例#4
0
        internal static MacroScriptEngine LoadEngineByFileExtension(string fileExtension)
        {
            MacroScriptEngine mse = new MacroScriptEngine();

            mse.loadRunTime();
            mse.m_engine = mse.m_runTime.GetEngineByFileExtension(fileExtension);
            mse.m_exceptionOperations = mse.m_engine.GetService <ExceptionOperations>();
            return(mse);
        }