aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/ScriptEngine/DotNetEngine/ScriptEngine.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Grid/ScriptEngine/DotNetEngine/ScriptEngine.cs')
-rw-r--r--OpenSim/Grid/ScriptEngine/DotNetEngine/ScriptEngine.cs119
1 files changed, 0 insertions, 119 deletions
diff --git a/OpenSim/Grid/ScriptEngine/DotNetEngine/ScriptEngine.cs b/OpenSim/Grid/ScriptEngine/DotNetEngine/ScriptEngine.cs
deleted file mode 100644
index fadd927..0000000
--- a/OpenSim/Grid/ScriptEngine/DotNetEngine/ScriptEngine.cs
+++ /dev/null
@@ -1,119 +0,0 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSim Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28/* Original code: Tedd Hansen */
29using System;
30using Nini.Config;
31using OpenSim.Framework.Console;
32using OpenSim.Region.Environment.Interfaces;
33using OpenSim.Region.Environment.Scenes;
34
35namespace OpenSim.Grid.ScriptEngine.DotNetEngine
36{
37 /// <summary>
38 /// This is the root object for ScriptEngine
39 /// </summary>
40 [Serializable]
41 public class ScriptEngine : IRegionModule
42 {
43 private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
44
45 internal Scene World;
46 internal EventManager m_EventManager; // Handles and queues incoming events from OpenSim
47 internal EventQueueManager m_EventQueueManager; // Executes events
48 internal ScriptManager m_ScriptManager; // Load, unload and execute scripts
49 internal AppDomainManager m_AppDomainManager;
50 internal LSLLongCmdHandler m_LSLLongCmdHandler;
51
52
53 public ScriptEngine()
54 {
55 //Common.SendToDebug("ScriptEngine Object Initialized");
56 Common.mySE = this;
57 }
58
59 public void InitializeEngine(Scene Sceneworld)
60 {
61 World = Sceneworld;
62
63 m_log.Info("[ScriptEngine]: DotNet & LSL ScriptEngine initializing");
64
65 //m_log.Info("[ScriptEngine]: InitializeEngine");
66
67 // Create all objects we'll be using
68 m_EventQueueManager = new EventQueueManager(this);
69 m_EventManager = new EventManager(this);
70 m_ScriptManager = new ScriptManager(this);
71 m_AppDomainManager = new AppDomainManager();
72 m_LSLLongCmdHandler = new LSLLongCmdHandler(this);
73
74 // Should we iterate the region for scripts that needs starting?
75 // Or can we assume we are loaded before anything else so we can use proper events?
76 }
77
78 public void Shutdown()
79 {
80 // We are shutting down
81 }
82
83 //// !!!FOR DEBUGGING ONLY!!! (for executing script directly from test app)
84 //[Obsolete("!!!FOR DEBUGGING ONLY!!!")]
85 //public void StartScript(string ScriptID, IScriptHost ObjectID)
86 //{
87 // this.myEventManager.TEMP_OBJECT_ID = ObjectID;
88 // m_log.Info("[ScriptEngine]: DEBUG FUNCTION: StartScript: " + ScriptID);
89 // myScriptManager.StartScript(ScriptID, ObjectID);
90 //}
91
92 #region IRegionModule
93
94 public void Initialise(Scene scene, IConfigSource config)
95 {
96 InitializeEngine(scene);
97 }
98
99 public void PostInitialise()
100 {
101 }
102
103 public void Close()
104 {
105 }
106
107 public string Name
108 {
109 get { return "LSLScriptingModule"; }
110 }
111
112 public bool IsSharedModule
113 {
114 get { return false; }
115 }
116
117 #endregion
118 }
119}