From 876f71cf931b887a3132ce719a4cc539b77cbca9 Mon Sep 17 00:00:00 2001 From: Tedd Hansen Date: Mon, 13 Aug 2007 19:39:51 +0000 Subject: (DotNet) ScriptEngine is now loaded and added to Scene during startup. --- OpenSim/Region/Application/OpenSimMain.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'OpenSim/Region/Application') diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs index ca95a8d..4dd5fe1 100644 --- a/OpenSim/Region/Application/OpenSimMain.cs +++ b/OpenSim/Region/Application/OpenSimMain.cs @@ -154,14 +154,21 @@ namespace OpenSim configFiles = Directory.GetFiles(regionConfigPath, "*.xml"); } + // Load all script engines found + OpenSim.Region.Environment.Scenes.Scripting.ScriptEngineLoader ScriptEngineLoader = new OpenSim.Region.Environment.Scenes.Scripting.ScriptEngineLoader(); + for (int i = 0; i < configFiles.Length; i++) { //Console.WriteLine("Loading region config file"); RegionInfo regionInfo = new RegionInfo("REGION CONFIG #" + (i + 1), configFiles[i]); + UDPServer udpServer; Scene scene = SetupScene(regionInfo, out udpServer); + + scene.AddScriptEngine(ScriptEngineLoader.LoadScriptEngine("DotNetEngine")); + m_localScenes.Add(scene); m_udpServers.Add(udpServer); @@ -174,6 +181,8 @@ namespace OpenSim this.m_udpServers[i].ServerListener(); } + + } -- cgit v1.1