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