* Object tracker dictionaries are now internal and only accessible through various methods and properties to prevent locking disasters. Basis of this code written by jradford in issue 342

* Added a Client.Self.Name property for the full name of the avatar which does smart caching
* Adds BackupCommand to TestClient (submitted by CheechBode in issue 314), backs up notecards and scripts from your inventory to hard drive. Needs more refining but it works
* Parsing problems in TestClient no longer crash the app

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1378 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2007-08-29 08:55:53 +00:00
parent 92e460a066
commit 349830c983
21 changed files with 777 additions and 246 deletions

View File

@@ -19,19 +19,18 @@ namespace libsecondlife.TestClient
Primitive closest = null;
double closestDistance = Double.MaxValue;
lock (Client.Network.CurrentSim.Objects.Prims)
{
foreach (Primitive p in Client.Network.CurrentSim.Objects.Prims.Values)
Client.Network.CurrentSim.Objects.ForEach(
delegate(Primitive prim)
{
float distance = Helpers.VecDist(Client.Self.Position, p.Position);
float distance = Helpers.VecDist(Client.Self.Position, prim.Position);
if (closest == null || distance < closestDistance)
{
closest = p;
closest = prim;
closestDistance = distance;
}
}
}
);
if (closest != null)
{