diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs index 23acc08..f7a9648 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/ScriptEngine.cs | |||
@@ -43,7 +43,7 @@ using OpenSim.Region.ScriptEngine.Shared.ScriptBase; | |||
43 | namespace OpenSim.Region.ScriptEngine.DotNetEngine | 43 | namespace OpenSim.Region.ScriptEngine.DotNetEngine |
44 | { | 44 | { |
45 | [Serializable] | 45 | [Serializable] |
46 | public class ScriptEngine : IRegionModule, IScriptEngine, IScriptModule | 46 | public class ScriptEngine : INonSharedRegionModule, IScriptEngine, IScriptModule |
47 | { | 47 | { |
48 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 48 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
49 | 49 | ||
@@ -117,11 +117,15 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine | |||
117 | } | 117 | } |
118 | } | 118 | } |
119 | 119 | ||
120 | public void Initialise(Scene Sceneworld, IConfigSource config) | 120 | public void Initialise(IConfigSource config) |
121 | { | ||
122 | ConfigSource = config; | ||
123 | } | ||
124 | |||
125 | public void AddRegion(Scene Sceneworld) | ||
121 | { | 126 | { |
122 | m_log.Info("[" + ScriptEngineName + "]: ScriptEngine initializing"); | 127 | m_log.Info("[" + ScriptEngineName + "]: ScriptEngine initializing"); |
123 | 128 | ||
124 | ConfigSource = config; | ||
125 | m_Scene = Sceneworld; | 129 | m_Scene = Sceneworld; |
126 | 130 | ||
127 | // Make sure we have config | 131 | // Make sure we have config |
@@ -153,7 +157,11 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine | |||
153 | m_Scene.StackModuleInterface<IScriptModule>(this); | 157 | m_Scene.StackModuleInterface<IScriptModule>(this); |
154 | } | 158 | } |
155 | 159 | ||
156 | public void PostInitialise() | 160 | public void RemoveRegion(Scene scene) |
161 | { | ||
162 | } | ||
163 | |||
164 | public void RegionLoaded(Scene scene) | ||
157 | { | 165 | { |
158 | if (!m_enabled) | 166 | if (!m_enabled) |
159 | return; | 167 | return; |