aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/Scripting/Minimodule/MRMModule.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/OptionalModules/Scripting/Minimodule/MRMModule.cs15
1 files changed, 11 insertions, 4 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/MRMModule.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/MRMModule.cs
index eb807f2..6a15a33 100644
--- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/MRMModule.cs
+++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/MRMModule.cs
@@ -164,16 +164,23 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
164 } 164 }
165 } 165 }
166 166
167 public void GetGlobalEnvironment(uint localID, out IWorld world, out IHost host)
168 {
169 world = new World(m_scene);
170 host = new Host(new SOPObject(m_scene, localID), m_scene, new ExtensionHandler(m_extensions), m_microthreads);
171 }
172
167 public void InitializeMRM(MRMBase mmb, uint localID, UUID itemID) 173 public void InitializeMRM(MRMBase mmb, uint localID, UUID itemID)
168 { 174 {
169 175
170 m_log.Info("[MRM] Created MRM Instance"); 176 m_log.Info("[MRM] Created MRM Instance");
171 177
172 IWorld m_world = new World(m_scene); 178 IWorld world;
173 IHost m_host = new Host(new SOPObject(m_scene, localID), m_scene, new ExtensionHandler(m_extensions), 179 IHost host;
174 m_microthreads); 180
181 GetGlobalEnvironment(localID, out world, out host);
175 182
176 mmb.InitMiniModule(m_world, m_host, itemID); 183 mmb.InitMiniModule(world, host, itemID);
177 } 184 }
178 185
179 public void PostInitialise() 186 public void PostInitialise()