* Just extracted a standard ToXml() on SceneObjectGroup
parent
4c8d175564
commit
b77bf18079
|
@ -311,8 +311,19 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
|
|
||||||
public string ToXmlString()
|
public string ToXmlString()
|
||||||
{
|
{
|
||||||
StringWriter sw = new StringWriter();
|
using (StringWriter sw = new StringWriter())
|
||||||
XmlTextWriter writer = new XmlTextWriter(sw);
|
{
|
||||||
|
using (XmlTextWriter writer = new XmlTextWriter(sw))
|
||||||
|
{
|
||||||
|
ToXml(writer);
|
||||||
|
}
|
||||||
|
|
||||||
|
return sw.ToString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public void ToXml(XmlTextWriter writer)
|
||||||
|
{
|
||||||
writer.WriteStartElement(String.Empty, "SceneObjectGroup", String.Empty);
|
writer.WriteStartElement(String.Empty, "SceneObjectGroup", String.Empty);
|
||||||
writer.WriteStartElement(String.Empty, "RootPart", String.Empty);
|
writer.WriteStartElement(String.Empty, "RootPart", String.Empty);
|
||||||
m_rootPart.ToXml(writer);
|
m_rootPart.ToXml(writer);
|
||||||
|
@ -329,8 +340,6 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
}
|
}
|
||||||
writer.WriteEndElement();
|
writer.WriteEndElement();
|
||||||
writer.WriteEndElement();
|
writer.WriteEndElement();
|
||||||
writer.Close();
|
|
||||||
return sw.ToString();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Copying
|
#region Copying
|
||||||
|
|
|
@ -22,7 +22,8 @@ namespace OpenSim.Region.Environment.Scenes
|
||||||
private string m_inventoryFileName = "";
|
private string m_inventoryFileName = "";
|
||||||
private LLUUID m_folderID = LLUUID.Zero;
|
private LLUUID m_folderID = LLUUID.Zero;
|
||||||
|
|
||||||
[XmlIgnore] public PhysicsActor PhysActor = null;
|
[XmlIgnore]
|
||||||
|
public PhysicsActor PhysActor = null;
|
||||||
|
|
||||||
protected Dictionary<LLUUID, TaskInventoryItem> TaskInventory = new Dictionary<LLUUID, TaskInventoryItem>();
|
protected Dictionary<LLUUID, TaskInventoryItem> TaskInventory = new Dictionary<LLUUID, TaskInventoryItem>();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue