Rename SceneSetupHelpers.AddRootAgent to AddClient() to better represent its effects and return object
parent
f99b89990c
commit
59aedbc94b
|
@ -55,7 +55,7 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory
|
||||||
|
|
||||||
AgentCircuitData acd = new AgentCircuitData();
|
AgentCircuitData acd = new AgentCircuitData();
|
||||||
acd.AgentID = userId;
|
acd.AgentID = userId;
|
||||||
TestClient tc = SceneSetupHelpers.AddRootAgent(scene, acd);
|
TestClient tc = SceneSetupHelpers.AddClient(scene, acd);
|
||||||
|
|
||||||
byte[] visualParams = new byte[AvatarAppearance.VISUALPARAM_COUNT];
|
byte[] visualParams = new byte[AvatarAppearance.VISUALPARAM_COUNT];
|
||||||
for (byte i = 0; i < visualParams.Length; i++)
|
for (byte i = 0; i < visualParams.Length; i++)
|
||||||
|
|
|
@ -83,7 +83,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
region1 = scene.RegionInfo.RegionHandle;
|
region1 = scene.RegionInfo.RegionHandle;
|
||||||
region2 = scene2.RegionInfo.RegionHandle;
|
region2 = scene2.RegionInfo.RegionHandle;
|
||||||
|
|
||||||
SceneSetupHelpers.AddRootAgent(scene, agent1);
|
SceneSetupHelpers.AddClient(scene, agent1);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
|
|
|
@ -139,7 +139,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
|
|
||||||
SceneObjectPart part = SceneSetupHelpers.AddSceneObject(scene);
|
SceneObjectPart part = SceneSetupHelpers.AddSceneObject(scene);
|
||||||
|
|
||||||
IClientAPI client = SceneSetupHelpers.AddRootAgent(scene, agentId);
|
IClientAPI client = SceneSetupHelpers.AddClient(scene, agentId);
|
||||||
scene.DeRezObjects(client, new System.Collections.Generic.List<uint>() { part.LocalId }, UUID.Zero, DeRezAction.Delete, UUID.Zero);
|
scene.DeRezObjects(client, new System.Collections.Generic.List<uint>() { part.LocalId }, UUID.Zero, DeRezAction.Delete, UUID.Zero);
|
||||||
|
|
||||||
SceneObjectPart retrievedPart = scene.GetSceneObjectPart(part.LocalId);
|
SceneObjectPart retrievedPart = scene.GetSceneObjectPart(part.LocalId);
|
||||||
|
|
|
@ -66,7 +66,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
IConfig config = configSource.AddConfig("Startup");
|
IConfig config = configSource.AddConfig("Startup");
|
||||||
config.Set("serverside_object_permissions", true);
|
config.Set("serverside_object_permissions", true);
|
||||||
SceneSetupHelpers.SetupSceneModules(scene, configSource, new object[] { new PermissionsModule() });
|
SceneSetupHelpers.SetupSceneModules(scene, configSource, new object[] { new PermissionsModule() });
|
||||||
TestClient client = SceneSetupHelpers.AddRootAgent(scene, userId);
|
TestClient client = SceneSetupHelpers.AddClient(scene, userId);
|
||||||
|
|
||||||
// Turn off the timer on the async sog deleter - we'll crank it by hand for this test.
|
// Turn off the timer on the async sog deleter - we'll crank it by hand for this test.
|
||||||
AsyncSceneObjectGroupDeleter sogd = scene.SceneObjectGroupDeleter;
|
AsyncSceneObjectGroupDeleter sogd = scene.SceneObjectGroupDeleter;
|
||||||
|
@ -105,7 +105,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
IConfig config = configSource.AddConfig("Startup");
|
IConfig config = configSource.AddConfig("Startup");
|
||||||
config.Set("serverside_object_permissions", true);
|
config.Set("serverside_object_permissions", true);
|
||||||
SceneSetupHelpers.SetupSceneModules(scene, configSource, new object[] { new PermissionsModule() });
|
SceneSetupHelpers.SetupSceneModules(scene, configSource, new object[] { new PermissionsModule() });
|
||||||
TestClient client = SceneSetupHelpers.AddRootAgent(scene, userId);
|
TestClient client = SceneSetupHelpers.AddClient(scene, userId);
|
||||||
|
|
||||||
// Turn off the timer on the async sog deleter - we'll crank it by hand for this test.
|
// Turn off the timer on the async sog deleter - we'll crank it by hand for this test.
|
||||||
AsyncSceneObjectGroupDeleter sogd = scene.SceneObjectGroupDeleter;
|
AsyncSceneObjectGroupDeleter sogd = scene.SceneObjectGroupDeleter;
|
||||||
|
|
|
@ -75,7 +75,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
new GroupsModule(),
|
new GroupsModule(),
|
||||||
new MockGroupsServicesConnector() });
|
new MockGroupsServicesConnector() });
|
||||||
|
|
||||||
TestClient client = SceneSetupHelpers.AddRootAgent(scene, userId);
|
TestClient client = SceneSetupHelpers.AddClient(scene, userId);
|
||||||
|
|
||||||
IGroupsModule groupsModule = scene.RequestModuleInterface<IGroupsModule>();
|
IGroupsModule groupsModule = scene.RequestModuleInterface<IGroupsModule>();
|
||||||
|
|
||||||
|
|
|
@ -212,7 +212,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
|
|
||||||
SceneSetupHelpers.SetupSceneModules(myScene1, configSource, etm);
|
SceneSetupHelpers.SetupSceneModules(myScene1, configSource, etm);
|
||||||
|
|
||||||
SceneSetupHelpers.AddRootAgent(myScene1, agent1Id);
|
SceneSetupHelpers.AddClient(myScene1, agent1Id);
|
||||||
ScenePresence childPresence = myScene2.GetScenePresence(agent1);
|
ScenePresence childPresence = myScene2.GetScenePresence(agent1);
|
||||||
|
|
||||||
// TODO: Need to do a fair amount of work to allow synchronous establishment of child agents
|
// TODO: Need to do a fair amount of work to allow synchronous establishment of child agents
|
||||||
|
|
|
@ -125,7 +125,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||||
sceneA.RegisterRegionWithGrid();
|
sceneA.RegisterRegionWithGrid();
|
||||||
|
|
||||||
UUID agentId = UUID.Parse("00000000-0000-0000-0000-000000000041");
|
UUID agentId = UUID.Parse("00000000-0000-0000-0000-000000000041");
|
||||||
TestClient client = SceneSetupHelpers.AddRootAgent(sceneA, agentId);
|
TestClient client = SceneSetupHelpers.AddClient(sceneA, agentId);
|
||||||
|
|
||||||
ICapabilitiesModule sceneACapsModule = sceneA.RequestModuleInterface<ICapabilitiesModule>();
|
ICapabilitiesModule sceneACapsModule = sceneA.RequestModuleInterface<ICapabilitiesModule>();
|
||||||
|
|
||||||
|
|
|
@ -341,9 +341,9 @@ namespace OpenSim.Tests.Common
|
||||||
/// <param name="scene"></param>
|
/// <param name="scene"></param>
|
||||||
/// <param name="agentId"></param>
|
/// <param name="agentId"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static TestClient AddRootAgent(Scene scene, UUID agentId)
|
public static TestClient AddClient(Scene scene, UUID agentId)
|
||||||
{
|
{
|
||||||
return AddRootAgent(scene, GenerateAgentData(agentId));
|
return AddClient(scene, GenerateAgentData(agentId));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -364,7 +364,7 @@ namespace OpenSim.Tests.Common
|
||||||
/// <param name="scene"></param>
|
/// <param name="scene"></param>
|
||||||
/// <param name="agentData"></param>
|
/// <param name="agentData"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static TestClient AddRootAgent(Scene scene, AgentCircuitData agentData)
|
public static TestClient AddClient(Scene scene, AgentCircuitData agentData)
|
||||||
{
|
{
|
||||||
string reason;
|
string reason;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue