* Added ImpotCommand and IMCommand to TestClient (neither are working yet)

* Added documentation to TextureEntry and renamed SetFace() to CreateFace()

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@667 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2006-12-01 23:32:12 +00:00
parent 7db025d58c
commit fa19b0cf8d
8 changed files with 183 additions and 42 deletions

View File

@@ -34,20 +34,23 @@ namespace libsecondlife.TestClient
return "Usage: export uuid outputfile.xml";
}
foreach (PrimObject prim in TestClient.Prims.Values)
lock (TestClient.Prims)
{
if (prim.ID == id)
foreach (PrimObject prim in TestClient.Prims.Values)
{
if (prim.ParentID != 0)
if (prim.ID == id)
{
localid = prim.ParentID;
}
else
{
localid = prim.LocalID;
}
if (prim.ParentID != 0)
{
localid = prim.ParentID;
}
else
{
localid = prim.LocalID;
}
break;
break;
}
}
}
@@ -58,12 +61,15 @@ namespace libsecondlife.TestClient
XmlWriter writer = XmlWriter.Create(file);
writer.WriteStartElement("primitives");
foreach (PrimObject prim in TestClient.Prims.Values)
lock (TestClient.Prims)
{
if (prim.LocalID == localid || prim.ParentID == localid)
foreach (PrimObject prim in TestClient.Prims.Values)
{
prim.ToXml(writer);
count++;
if (prim.LocalID == localid || prim.ParentID == localid)
{
prim.ToXml(writer);
count++;
}
}
}