mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 11:57:03 +08:00
Revert "Merge master into teravuswork", it should have been avination, not master.
This reverts commitdfac269032, reversing changes made to619c39e514.
This commit is contained in:
@@ -148,7 +148,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC
|
||||
OnInstantMessage(this, new GridInstantMessage(m_scene,
|
||||
m_uuid, m_firstname + " " + m_lastname,
|
||||
target, 0, false, message,
|
||||
UUID.Zero, false, Position, new byte[0], true));
|
||||
UUID.Zero, false, Position, new byte[0]));
|
||||
}
|
||||
|
||||
public void SendAgentOffline(UUID[] agentIDs)
|
||||
@@ -607,15 +607,13 @@ namespace OpenSim.Region.OptionalModules.World.NPC
|
||||
{
|
||||
}
|
||||
|
||||
public virtual void SendChatMessage(
|
||||
string message, byte type, Vector3 fromPos, string fromName,
|
||||
UUID fromAgentID, UUID ownerID, byte source, byte audible)
|
||||
public virtual void SendChatMessage(string message, byte type, Vector3 fromPos, string fromName,
|
||||
UUID fromAgentID, byte source, byte audible)
|
||||
{
|
||||
}
|
||||
|
||||
public virtual void SendChatMessage(
|
||||
byte[] message, byte type, Vector3 fromPos, string fromName,
|
||||
UUID fromAgentID, UUID ownerID, byte source, byte audible)
|
||||
public virtual void SendChatMessage(byte[] message, byte type, Vector3 fromPos, string fromName,
|
||||
UUID fromAgentID, byte source, byte audible)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -911,13 +909,11 @@ namespace OpenSim.Region.OptionalModules.World.NPC
|
||||
|
||||
public void Close()
|
||||
{
|
||||
Close(true, false);
|
||||
Close(true);
|
||||
}
|
||||
|
||||
public void Close(bool sendStop, bool force)
|
||||
public void Close(bool sendStop)
|
||||
{
|
||||
// Remove ourselves from the scene
|
||||
m_scene.RemoveClient(AgentId, false);
|
||||
}
|
||||
|
||||
public void Start()
|
||||
|
||||
@@ -117,12 +117,6 @@ namespace OpenSim.Region.OptionalModules.World.NPC.Tests
|
||||
Assert.That(npc, Is.Not.Null);
|
||||
Assert.That(npc.Appearance.Texture.FaceTextures[8].TextureID, Is.EqualTo(originalFace8TextureId));
|
||||
Assert.That(m_umMod.GetUserName(npc.UUID), Is.EqualTo(string.Format("{0} {1}", npc.Firstname, npc.Lastname)));
|
||||
|
||||
IClientAPI client;
|
||||
Assert.That(m_scene.TryGetClient(npcId, out client), Is.True);
|
||||
|
||||
// Have to account for both SP and NPC.
|
||||
Assert.That(m_scene.AuthenticateHandler.GetAgentCircuits().Count, Is.EqualTo(2));
|
||||
}
|
||||
|
||||
[Test]
|
||||
@@ -142,11 +136,6 @@ namespace OpenSim.Region.OptionalModules.World.NPC.Tests
|
||||
ScenePresence deletedNpc = m_scene.GetScenePresence(npcId);
|
||||
|
||||
Assert.That(deletedNpc, Is.Null);
|
||||
IClientAPI client;
|
||||
Assert.That(m_scene.TryGetClient(npcId, out client), Is.False);
|
||||
|
||||
// Have to account for SP still present.
|
||||
Assert.That(m_scene.AuthenticateHandler.GetAgentCircuits().Count, Is.EqualTo(1));
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
||||
Reference in New Issue
Block a user