* 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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user