aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests
diff options
context:
space:
mode:
authorUbitUmarov2015-08-19 11:04:28 +0100
committerUbitUmarov2015-08-19 11:04:28 +0100
commit0af2fafddf36009ffe470da106dc6d0ceb3ced10 (patch)
treec5d2a58398fcc4bd1b4722a8379ce9bb643fe8e5 /OpenSim/Tests
parentMerge branch 'mbworkvar2' into ubitvar (diff)
downloadopensim-SC_OLD-0af2fafddf36009ffe470da106dc6d0ceb3ced10.zip
opensim-SC_OLD-0af2fafddf36009ffe470da106dc6d0ceb3ced10.tar.gz
opensim-SC_OLD-0af2fafddf36009ffe470da106dc6d0ceb3ced10.tar.bz2
opensim-SC_OLD-0af2fafddf36009ffe470da106dc6d0ceb3ced10.tar.xz
add missing regionExtent setup and Scene physicsscene configuration ( not
exactly as core)
Diffstat (limited to 'OpenSim/Tests')
-rw-r--r--OpenSim/Tests/Common/Helpers/SceneHelpers.cs14
-rw-r--r--OpenSim/Tests/Common/Mock/TestScene.cs5
2 files changed, 11 insertions, 8 deletions
diff --git a/OpenSim/Tests/Common/Helpers/SceneHelpers.cs b/OpenSim/Tests/Common/Helpers/SceneHelpers.cs
index 4cdfe98..d36e42e 100644
--- a/OpenSim/Tests/Common/Helpers/SceneHelpers.cs
+++ b/OpenSim/Tests/Common/Helpers/SceneHelpers.cs
@@ -138,8 +138,15 @@ namespace OpenSim.Tests.Common
138 138
139 SceneCommunicationService scs = new SceneCommunicationService(); 139 SceneCommunicationService scs = new SceneCommunicationService();
140 140
141 PhysicsPluginManager physicsPluginManager = new PhysicsPluginManager();
142 physicsPluginManager.LoadPluginsFromAssembly("Physics/OpenSim.Region.Physics.BasicPhysicsPlugin.dll");
143 Vector3 regionExtent = new Vector3(regInfo.RegionSizeX, regInfo.RegionSizeY, regInfo.RegionSizeZ);
144 PhysicsScene physicsScene
145 = physicsPluginManager.GetPhysicsScene(
146 "basicphysics", "ZeroMesher", new IniConfigSource(), "test", regionExtent);
147
141 TestScene testScene = new TestScene( 148 TestScene testScene = new TestScene(
142 regInfo, m_acm, scs, m_simDataService, m_estateDataService, configSource, null); 149 regInfo, m_acm, physicsScene, scs, m_simDataService, m_estateDataService, configSource, null);
143 150
144 INonSharedRegionModule godsModule = new GodsModule(); 151 INonSharedRegionModule godsModule = new GodsModule();
145 godsModule.Initialise(new IniConfigSource()); 152 godsModule.Initialise(new IniConfigSource());
@@ -184,11 +191,6 @@ namespace OpenSim.Tests.Common
184 testScene.LandChannel = new TestLandChannel(testScene); 191 testScene.LandChannel = new TestLandChannel(testScene);
185 testScene.LoadWorldMap(); 192 testScene.LoadWorldMap();
186 193
187 PhysicsPluginManager physicsPluginManager = new PhysicsPluginManager();
188 physicsPluginManager.LoadPluginsFromAssembly("Physics/OpenSim.Region.Physics.BasicPhysicsPlugin.dll");
189 testScene.PhysicsScene
190 = physicsPluginManager.GetPhysicsScene("basicphysics", "ZeroMesher", new IniConfigSource(), "test");
191
192 testScene.RegionInfo.EstateSettings = new EstateSettings(); 194 testScene.RegionInfo.EstateSettings = new EstateSettings();
193 testScene.LoginsEnabled = true; 195 testScene.LoginsEnabled = true;
194 testScene.RegisterRegionWithGrid(); 196 testScene.RegisterRegionWithGrid();
diff --git a/OpenSim/Tests/Common/Mock/TestScene.cs b/OpenSim/Tests/Common/Mock/TestScene.cs
index a7e0dfb..53a311e 100644
--- a/OpenSim/Tests/Common/Mock/TestScene.cs
+++ b/OpenSim/Tests/Common/Mock/TestScene.cs
@@ -33,16 +33,17 @@ using OpenSim.Framework.Servers;
33using OpenSim.Region.Framework; 33using OpenSim.Region.Framework;
34using OpenSim.Region.Framework.Interfaces; 34using OpenSim.Region.Framework.Interfaces;
35using OpenSim.Region.Framework.Scenes; 35using OpenSim.Region.Framework.Scenes;
36using OpenSim.Region.Physics.Manager;
36 37
37namespace OpenSim.Tests.Common.Mock 38namespace OpenSim.Tests.Common.Mock
38{ 39{
39 public class TestScene : Scene 40 public class TestScene : Scene
40 { 41 {
41 public TestScene( 42 public TestScene(
42 RegionInfo regInfo, AgentCircuitManager authen, 43 RegionInfo regInfo, AgentCircuitManager authen, PhysicsScene physicsScene,
43 SceneCommunicationService sceneGridService, ISimulationDataService simDataService, IEstateDataService estateDataService, 44 SceneCommunicationService sceneGridService, ISimulationDataService simDataService, IEstateDataService estateDataService,
44 IConfigSource config, string simulatorVersion) 45 IConfigSource config, string simulatorVersion)
45 : base(regInfo, authen, sceneGridService, simDataService, estateDataService, 46 : base(regInfo, authen, physicsScene, sceneGridService, simDataService, estateDataService,
46 config, simulatorVersion) 47 config, simulatorVersion)
47 { 48 {
48 } 49 }