mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 18:55:58 +08:00
refactor: Rename Scene.AddNewClient() to AddNewAgent() to make it obvious in the code that this is symmetric with CloseAgent()
This commit is contained in:
@@ -200,7 +200,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||
// *** This is the second stage, where the client established a child agent/scene presence using the
|
||||
// circuit code given to the scene in stage 1 ***
|
||||
TestClient client = new TestClient(acd, scene);
|
||||
scene.AddNewClient(client, PresenceType.User);
|
||||
scene.AddNewAgent(client, PresenceType.User);
|
||||
|
||||
Assert.That(scene.AuthenticateHandler.GetAgentCircuitData(agentId), Is.Not.Null);
|
||||
Assert.That(scene.AuthenticateHandler.GetAgentCircuits().Count, Is.EqualTo(1));
|
||||
@@ -279,7 +279,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||
// string reason;
|
||||
// scene.NewUserConnection(agent, (uint)TeleportFlags.ViaLogin, out reason);
|
||||
// testclient = new TestClient(agent, scene);
|
||||
// scene.AddNewClient(testclient);
|
||||
// scene.AddNewAgent(testclient);
|
||||
//
|
||||
// ScenePresence presence = scene.GetScenePresence(agent1);
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user