aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/ScriptServer/ScriptServer/ScriptEnginesManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Grid/ScriptServer/ScriptServer/ScriptEnginesManager.cs')
-rw-r--r--OpenSim/Grid/ScriptServer/ScriptServer/ScriptEnginesManager.cs13
1 files changed, 6 insertions, 7 deletions
diff --git a/OpenSim/Grid/ScriptServer/ScriptServer/ScriptEnginesManager.cs b/OpenSim/Grid/ScriptServer/ScriptServer/ScriptEnginesManager.cs
index 7b49127..3bfca87 100644
--- a/OpenSim/Grid/ScriptServer/ScriptServer/ScriptEnginesManager.cs
+++ b/OpenSim/Grid/ScriptServer/ScriptServer/ScriptEnginesManager.cs
@@ -28,14 +28,15 @@
28 28
29using System.Collections.Generic; 29using System.Collections.Generic;
30using OpenSim.Framework.Console; 30using OpenSim.Framework.Console;
31using OpenSim.Region.ScriptEngine.Common;
31 32
32namespace OpenSim.Grid.ScriptServer 33namespace OpenSim.Grid.ScriptServer.ScriptServer
33{ 34{
34 internal class ScriptEngineManager 35 internal class ScriptEngineManager
35 { 36 {
36 private LogBase m_log; 37 private LogBase m_log;
37 private ScriptEngineLoader ScriptEngineLoader; 38 private ScriptEngineLoader ScriptEngineLoader;
38 private List<ScriptEngineInterface> scriptEngines = new List<ScriptEngineInterface>(); 39 private List<ScriptServerInterfaces.ScriptEngine> scriptEngines = new List<ScriptServerInterfaces.ScriptEngine>();
39 private ScriptServerMain m_ScriptServerMain; 40 private ScriptServerMain m_ScriptServerMain;
40 41
41 // Initialize 42 // Initialize
@@ -44,23 +45,21 @@ namespace OpenSim.Grid.ScriptServer
44 m_ScriptServerMain = scm; 45 m_ScriptServerMain = scm;
45 m_log = logger; 46 m_log = logger;
46 ScriptEngineLoader = new ScriptEngineLoader(m_log); 47 ScriptEngineLoader = new ScriptEngineLoader(m_log);
47
48 // Temp - we should not load during initialize... Loading should be done later.
49 LoadEngine("DotNetScriptEngine");
50 } 48 }
51 49
52 ~ScriptEngineManager() 50 ~ScriptEngineManager()
53 { 51 {
54 } 52 }
55 53
56 public void LoadEngine(string engineName) 54 public ScriptServerInterfaces.ScriptEngine LoadEngine(string engineName)
57 { 55 {
58 // Load and add to list of ScriptEngines 56 // Load and add to list of ScriptEngines
59 ScriptEngineInterface sei = ScriptEngineLoader.LoadScriptEngine(engineName); 57 ScriptServerInterfaces.ScriptEngine sei = ScriptEngineLoader.LoadScriptEngine(engineName);
60 if (sei != null) 58 if (sei != null)
61 { 59 {
62 scriptEngines.Add(sei); 60 scriptEngines.Add(sei);
63 } 61 }
62 return sei;
64 } 63 }
65 } 64 }
66} \ No newline at end of file 65} \ No newline at end of file