diff options
Diffstat (limited to 'OpenSim/Tests')
-rw-r--r-- | OpenSim/Tests/Common/Helpers/SceneHelpers.cs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/OpenSim/Tests/Common/Helpers/SceneHelpers.cs b/OpenSim/Tests/Common/Helpers/SceneHelpers.cs index eb8078d..874ff62 100644 --- a/OpenSim/Tests/Common/Helpers/SceneHelpers.cs +++ b/OpenSim/Tests/Common/Helpers/SceneHelpers.cs | |||
@@ -119,6 +119,11 @@ namespace OpenSim.Tests.Common | |||
119 | return SetupScene(name, id, x, y, new IniConfigSource()); | 119 | return SetupScene(name, id, x, y, new IniConfigSource()); |
120 | } | 120 | } |
121 | 121 | ||
122 | public TestScene SetupScene(string name, UUID id, uint x, uint y, IConfigSource configSource) | ||
123 | { | ||
124 | return SetupScene(name, id, x, y, Constants.RegionSize, Constants.RegionSize, configSource); | ||
125 | } | ||
126 | |||
122 | /// <summary> | 127 | /// <summary> |
123 | /// Set up a scene. | 128 | /// Set up a scene. |
124 | /// </summary> | 129 | /// </summary> |
@@ -126,10 +131,12 @@ namespace OpenSim.Tests.Common | |||
126 | /// <param name="id">ID of the region</param> | 131 | /// <param name="id">ID of the region</param> |
127 | /// <param name="x">X co-ordinate of the region</param> | 132 | /// <param name="x">X co-ordinate of the region</param> |
128 | /// <param name="y">Y co-ordinate of the region</param> | 133 | /// <param name="y">Y co-ordinate of the region</param> |
134 | /// <param name="sizeX">X size of scene</param> | ||
135 | /// <param name="sizeY">Y size of scene</param> | ||
129 | /// <param name="configSource"></param> | 136 | /// <param name="configSource"></param> |
130 | /// <returns></returns> | 137 | /// <returns></returns> |
131 | public TestScene SetupScene( | 138 | public TestScene SetupScene( |
132 | string name, UUID id, uint x, uint y, IConfigSource configSource) | 139 | string name, UUID id, uint x, uint y, uint sizeX, uint sizeY, IConfigSource configSource) |
133 | { | 140 | { |
134 | Console.WriteLine("Setting up test scene {0}", name); | 141 | Console.WriteLine("Setting up test scene {0}", name); |
135 | 142 | ||
@@ -139,6 +146,8 @@ namespace OpenSim.Tests.Common | |||
139 | RegionInfo regInfo = new RegionInfo(x, y, new IPEndPoint(IPAddress.Loopback, 9000), "127.0.0.1"); | 146 | RegionInfo regInfo = new RegionInfo(x, y, new IPEndPoint(IPAddress.Loopback, 9000), "127.0.0.1"); |
140 | regInfo.RegionName = name; | 147 | regInfo.RegionName = name; |
141 | regInfo.RegionID = id; | 148 | regInfo.RegionID = id; |
149 | regInfo.RegionSizeX = sizeX; | ||
150 | regInfo.RegionSizeY = sizeY; | ||
142 | 151 | ||
143 | SceneCommunicationService scs = new SceneCommunicationService(); | 152 | SceneCommunicationService scs = new SceneCommunicationService(); |
144 | 153 | ||