aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tests/Common/Helpers/SceneHelpers.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Tests/Common/Helpers/SceneHelpers.cs (renamed from OpenSim/Tests/Common/Helpers/SceneSetupHelpers.cs)15
1 files changed, 8 insertions, 7 deletions
diff --git a/OpenSim/Tests/Common/Helpers/SceneSetupHelpers.cs b/OpenSim/Tests/Common/Helpers/SceneHelpers.cs
index 70621d5..086a725 100644
--- a/OpenSim/Tests/Common/Helpers/SceneSetupHelpers.cs
+++ b/OpenSim/Tests/Common/Helpers/SceneHelpers.cs
@@ -54,7 +54,7 @@ namespace OpenSim.Tests.Common
54 /// <summary> 54 /// <summary>
55 /// Helpers for setting up scenes. 55 /// Helpers for setting up scenes.
56 /// </summary> 56 /// </summary>
57 public class SceneSetupHelpers 57 public class SceneHelpers
58 { 58 {
59 /// <summary> 59 /// <summary>
60 /// Set up a test scene 60 /// Set up a test scene
@@ -331,6 +331,7 @@ namespace OpenSim.Tests.Common
331 agentData.InventoryFolder = UUID.Zero; 331 agentData.InventoryFolder = UUID.Zero;
332 agentData.startpos = Vector3.Zero; 332 agentData.startpos = Vector3.Zero;
333 agentData.CapsPath = "http://wibble.com"; 333 agentData.CapsPath = "http://wibble.com";
334 agentData.ServiceURLs = new Dictionary<string, object>();
334 335
335 return agentData; 336 return agentData;
336 } 337 }
@@ -341,9 +342,9 @@ namespace OpenSim.Tests.Common
341 /// <param name="scene"></param> 342 /// <param name="scene"></param>
342 /// <param name="agentId"></param> 343 /// <param name="agentId"></param>
343 /// <returns></returns> 344 /// <returns></returns>
344 public static TestClient AddClient(Scene scene, UUID agentId) 345 public static ScenePresence AddScenePresence(Scene scene, UUID agentId)
345 { 346 {
346 return AddClient(scene, GenerateAgentData(agentId)); 347 return AddScenePresence(scene, GenerateAgentData(agentId));
347 } 348 }
348 349
349 /// <summary> 350 /// <summary>
@@ -364,7 +365,7 @@ namespace OpenSim.Tests.Common
364 /// <param name="scene"></param> 365 /// <param name="scene"></param>
365 /// <param name="agentData"></param> 366 /// <param name="agentData"></param>
366 /// <returns></returns> 367 /// <returns></returns>
367 public static TestClient AddClient(Scene scene, AgentCircuitData agentData) 368 public static ScenePresence AddScenePresence(Scene scene, AgentCircuitData agentData)
368 { 369 {
369 string reason; 370 string reason;
370 371
@@ -379,14 +380,14 @@ namespace OpenSim.Tests.Common
379 380
380 // Stage 2: add the new client as a child agent to the scene 381 // Stage 2: add the new client as a child agent to the scene
381 TestClient client = new TestClient(agentData, scene); 382 TestClient client = new TestClient(agentData, scene);
382 scene.AddNewClient(client); 383 scene.AddNewClient(client, PresenceType.User);
383 384
384 // Stage 3: Complete the entrance into the region. This converts the child agent into a root agent. 385 // Stage 3: Complete the entrance into the region. This converts the child agent into a root agent.
385 ScenePresence scp = scene.GetScenePresence(agentData.AgentID); 386 ScenePresence scp = scene.GetScenePresence(agentData.AgentID);
386 scp.CompleteMovement(client); 387 scp.CompleteMovement(client, true);
387 //scp.MakeRootAgent(new Vector3(90, 90, 90), true); 388 //scp.MakeRootAgent(new Vector3(90, 90, 90), true);
388 389
389 return client; 390 return scp;
390 } 391 }
391 392
392 /// <summary> 393 /// <summary>