* Removing unused InventoryNode and InventoryNodeDictionary files

* Adding INetworkManager interface, a good starting point for converting all of the manager classes to interfaces
* Changing object pooling for packet buffers from per-sim to a singleton in ObjectPool.cs, should resolve memory leaks for bots that travel the world [LIBOMV-338]
* Removing DetectBotCommand since that detection method does not work
* More work on Matrix4 type

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2034 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2008-07-30 19:24:15 +00:00
parent 2ec24f22fa
commit 51aa7dbe10
11 changed files with 361 additions and 350 deletions

View File

@@ -1,40 +0,0 @@
using System;
using OpenMetaverse;
using OpenMetaverse.Packets;
namespace OpenMetaverse.TestClient
{
public class DetectBotCommand : Command
{
public DetectBotCommand(TestClient testClient)
{
Name = "detectbot";
Description = "Runs in the background, reporting any potential bots";
Category = CommandCategory.TestClient;
testClient.Avatars.OnAvatarAppearance += new AvatarManager.AvatarAppearanceCallback(Avatars_OnAvatarAppearance);
}
public override string Execute(string[] args, UUID fromAgentID)
{
return "This command is always running";
}
void Avatars_OnAvatarAppearance(UUID avatarID, bool isTrial, LLObject.TextureEntryFace defaultTexture, LLObject.TextureEntryFace[] faceTextures, System.Collections.Generic.List<byte> visualParams)
{
if (IsNullOrZero(faceTextures[(int)AppearanceManager.TextureIndex.EyesBaked]) &&
IsNullOrZero(faceTextures[(int)AppearanceManager.TextureIndex.HeadBaked]) &&
IsNullOrZero(faceTextures[(int)AppearanceManager.TextureIndex.LowerBaked]) &&
IsNullOrZero(faceTextures[(int)AppearanceManager.TextureIndex.SkirtBaked]) &&
IsNullOrZero(faceTextures[(int)AppearanceManager.TextureIndex.UpperBaked]))
{
Console.WriteLine("Avatar " + avatarID.ToString() + " may be a bot");
}
}
private bool IsNullOrZero(LLObject.TextureEntryFace face)
{
return (face == null || face.TextureID == UUID.Zero);
}
}
}