aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2009-05-14 18:08:54 +0000
committerJustin Clarke Casey2009-05-14 18:08:54 +0000
commit303aa4b65ead33c44122d61c0f9ef075236e6f76 (patch)
tree9007de8773b2f33af81ec2530214ecb3ef468db6 /OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
parent* refactor: break some of xml2 serialization out of sog (diff)
downloadopensim-SC-303aa4b65ead33c44122d61c0f9ef075236e6f76.zip
opensim-SC-303aa4b65ead33c44122d61c0f9ef075236e6f76.tar.gz
opensim-SC-303aa4b65ead33c44122d61c0f9ef075236e6f76.tar.bz2
opensim-SC-303aa4b65ead33c44122d61c0f9ef075236e6f76.tar.xz
* refactor: move bottom part of 'xml2' serializaton to separate class
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs27
1 files changed, 0 insertions, 27 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
index 5611b03..8a06fd1 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
@@ -583,33 +583,6 @@ namespace OpenSim.Region.Framework.Scenes
583 583
584 #endregion 584 #endregion
585 585
586 public void ToXml2(XmlTextWriter writer)
587 {
588 //m_log.DebugFormat("[SOG]: Starting serialization of SOG {0} to XML2", Name);
589 //int time = System.Environment.TickCount;
590
591 writer.WriteStartElement(String.Empty, "SceneObjectGroup", String.Empty);
592 m_rootPart.ToXml(writer);
593 writer.WriteStartElement(String.Empty, "OtherParts", String.Empty);
594
595 lock (m_parts)
596 {
597 foreach (SceneObjectPart part in m_parts.Values)
598 {
599 if (part.UUID != m_rootPart.UUID)
600 {
601 part.ToXml(writer);
602 }
603 }
604 }
605
606 writer.WriteEndElement(); // End of OtherParts
607 SaveScriptedState(writer);
608 writer.WriteEndElement(); // End of SceneObjectGroup
609
610 //m_log.DebugFormat("[SOG]: Finished serialization of SOG {0} to XML2, {1}ms", Name, System.Environment.TickCount - time);
611 }
612
613 public void SaveScriptedState(XmlTextWriter writer) 586 public void SaveScriptedState(XmlTextWriter writer)
614 { 587 {
615 XmlDocument doc = new XmlDocument(); 588 XmlDocument doc = new XmlDocument();