diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Grid/ScriptServer/ScriptServer/ScriptEnginesManager.cs | 82 |
1 files changed, 41 insertions, 41 deletions
diff --git a/OpenSim/Grid/ScriptServer/ScriptServer/ScriptEnginesManager.cs b/OpenSim/Grid/ScriptServer/ScriptServer/ScriptEnginesManager.cs index faa859d..bfcee79 100644 --- a/OpenSim/Grid/ScriptServer/ScriptServer/ScriptEnginesManager.cs +++ b/OpenSim/Grid/ScriptServer/ScriptServer/ScriptEnginesManager.cs | |||
@@ -1,41 +1,41 @@ | |||
1 | using System; | 1 | using System; |
2 | using System.Collections.Generic; | 2 | using System.Collections.Generic; |
3 | using System.Text; | 3 | using System.Text; |
4 | using OpenSim.Framework.Console; | 4 | using OpenSim.Framework.Console; |
5 | 5 | ||
6 | namespace OpenSim.Grid.ScriptServer | 6 | namespace OpenSim.Grid.ScriptServer |
7 | { | 7 | { |
8 | internal class ScriptEngineManager | 8 | internal class ScriptEngineManager |
9 | { | 9 | { |
10 | private LogBase m_log; | 10 | private LogBase m_log; |
11 | private ScriptEngineLoader ScriptEngineLoader; | 11 | private ScriptEngineLoader ScriptEngineLoader; |
12 | private List<ScriptEngineInterface> scriptEngines = new List<ScriptEngineInterface>(); | 12 | private List<ScriptEngineInterface> scriptEngines = new List<ScriptEngineInterface>(); |
13 | private ScriptServerMain m_ScriptServerMain; | 13 | private ScriptServerMain m_ScriptServerMain; |
14 | 14 | ||
15 | // Initialize | 15 | // Initialize |
16 | public ScriptEngineManager(ScriptServerMain scm, LogBase logger) | 16 | public ScriptEngineManager(ScriptServerMain scm, LogBase logger) |
17 | { | 17 | { |
18 | m_ScriptServerMain = scm; | 18 | m_ScriptServerMain = scm; |
19 | m_log = logger; | 19 | m_log = logger; |
20 | ScriptEngineLoader = new ScriptEngineLoader(m_log); | 20 | ScriptEngineLoader = new ScriptEngineLoader(m_log); |
21 | 21 | ||
22 | // Temp - we should not load during initialize... Loading should be done later. | 22 | // Temp - we should not load during initialize... Loading should be done later. |
23 | LoadEngine("DotNetScriptEngine"); | 23 | LoadEngine("DotNetScriptEngine"); |
24 | } | 24 | } |
25 | ~ScriptEngineManager() | 25 | ~ScriptEngineManager() |
26 | { | 26 | { |
27 | } | 27 | } |
28 | 28 | ||
29 | public void LoadEngine(string engineName) | 29 | public void LoadEngine(string engineName) |
30 | { | 30 | { |
31 | // Load and add to list of ScriptEngines | 31 | // Load and add to list of ScriptEngines |
32 | ScriptEngineInterface sei = ScriptEngineLoader.LoadScriptEngine(engineName); | 32 | ScriptEngineInterface sei = ScriptEngineLoader.LoadScriptEngine(engineName); |
33 | if (sei != null) | 33 | if (sei != null) |
34 | { | 34 | { |
35 | scriptEngines.Add(sei); | 35 | scriptEngines.Add(sei); |
36 | } | 36 | } |
37 | } | 37 | } |
38 | 38 | ||
39 | 39 | ||
40 | } | 40 | } |
41 | } | 41 | } |