diff options
author | Justin Clarke Casey | 2009-05-08 19:18:37 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2009-05-08 19:18:37 +0000 |
commit | 567e0d032c56b2d1498216416fa6874ec77dd55b (patch) | |
tree | ef63642c32a558c1a47f4fd9143fdbdf25d1e5f3 /OpenSim/Region/OptionalModules | |
parent | Implement an ingenious solution to pacekt pool performance suggested by (diff) | |
download | opensim-SC_OLD-567e0d032c56b2d1498216416fa6874ec77dd55b.zip opensim-SC_OLD-567e0d032c56b2d1498216416fa6874ec77dd55b.tar.gz opensim-SC_OLD-567e0d032c56b2d1498216416fa6874ec77dd55b.tar.bz2 opensim-SC_OLD-567e0d032c56b2d1498216416fa6874ec77dd55b.tar.xz |
* break out 'xml2' deserialization from sog
Diffstat (limited to 'OpenSim/Region/OptionalModules')
4 files changed, 9 insertions, 43 deletions
diff --git a/OpenSim/Region/OptionalModules/ContentManagementSystem/CMModel.cs b/OpenSim/Region/OptionalModules/ContentManagementSystem/CMModel.cs index c9a760b..a4ee270 100644 --- a/OpenSim/Region/OptionalModules/ContentManagementSystem/CMModel.cs +++ b/OpenSim/Region/OptionalModules/ContentManagementSystem/CMModel.cs | |||
@@ -25,15 +25,6 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | #region Header | ||
29 | |||
30 | // CMModel.cs | ||
31 | // User: bongiojp | ||
32 | // | ||
33 | // | ||
34 | |||
35 | #endregion Header | ||
36 | |||
37 | using System; | 28 | using System; |
38 | using System.Collections; | 29 | using System.Collections; |
39 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
@@ -45,6 +36,7 @@ using OpenSim; | |||
45 | using OpenSim.Framework; | 36 | using OpenSim.Framework; |
46 | using OpenSim.Region.Framework.Interfaces; | 37 | using OpenSim.Region.Framework.Interfaces; |
47 | using OpenSim.Region.Framework.Scenes; | 38 | using OpenSim.Region.Framework.Scenes; |
39 | using OpenSim.Region.Framework.Scenes.Serialization; | ||
48 | using OpenSim.Region.Physics.Manager; | 40 | using OpenSim.Region.Physics.Manager; |
49 | 41 | ||
50 | using log4net; | 42 | using log4net; |
@@ -211,14 +203,15 @@ namespace OpenSim.Region.OptionalModules.ContentManagement | |||
211 | 203 | ||
212 | foreach (string xml in xmllist) | 204 | foreach (string xml in xmllist) |
213 | { | 205 | { |
214 | try{ | 206 | try |
215 | temp = new SceneObjectGroup(xml); | 207 | { |
208 | temp = SceneObjectSerializer.FromXml2Format(xml); | ||
216 | temp.SetScene(scene); | 209 | temp.SetScene(scene); |
217 | foreach (SceneObjectPart part in temp.Children.Values) | 210 | foreach (SceneObjectPart part in temp.Children.Values) |
218 | part.RegionHandle = scene.RegionInfo.RegionHandle; | 211 | part.RegionHandle = scene.RegionInfo.RegionHandle; |
219 | ReplacementList.Add(temp.UUID, (EntityBase)temp); | 212 | ReplacementList.Add(temp.UUID, (EntityBase)temp); |
220 | } | 213 | } |
221 | catch(Exception e) | 214 | catch (Exception e) |
222 | { | 215 | { |
223 | m_log.Info("[CMMODEL]: Error while creating replacement list for rollback: " + e); | 216 | m_log.Info("[CMMODEL]: Error while creating replacement list for rollback: " + e); |
224 | } | 217 | } |
diff --git a/OpenSim/Region/OptionalModules/ContentManagementSystem/ContentManagementEntity.cs b/OpenSim/Region/OptionalModules/ContentManagementSystem/ContentManagementEntity.cs index 4d65038..cbd2a6f 100644 --- a/OpenSim/Region/OptionalModules/ContentManagementSystem/ContentManagementEntity.cs +++ b/OpenSim/Region/OptionalModules/ContentManagementSystem/ContentManagementEntity.cs | |||
@@ -25,15 +25,6 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | #region Header | ||
29 | |||
30 | // ContentManagementEntity.cs | ||
31 | // User: bongiojp | ||
32 | // | ||
33 | // | ||
34 | |||
35 | #endregion Header | ||
36 | |||
37 | using System; | 28 | using System; |
38 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
39 | using System.Drawing; | 30 | using System.Drawing; |
@@ -45,6 +36,7 @@ using Nini.Config; | |||
45 | using OpenSim.Framework; | 36 | using OpenSim.Framework; |
46 | using OpenSim.Region.Framework.Interfaces; | 37 | using OpenSim.Region.Framework.Interfaces; |
47 | using OpenSim.Region.Framework.Scenes; | 38 | using OpenSim.Region.Framework.Scenes; |
39 | using OpenSim.Region.Framework.Scenes.Serialization; | ||
48 | using OpenSim.Region.Physics.Manager; | 40 | using OpenSim.Region.Physics.Manager; |
49 | 41 | ||
50 | using log4net; | 42 | using log4net; |
@@ -87,7 +79,7 @@ namespace OpenSim.Region.OptionalModules.ContentManagement | |||
87 | public ContentManagementEntity(string objectXML, Scene scene, bool physics) | 79 | public ContentManagementEntity(string objectXML, Scene scene, bool physics) |
88 | : base(objectXML, scene, false) | 80 | : base(objectXML, scene, false) |
89 | { | 81 | { |
90 | m_UnchangedEntity = new SceneObjectGroup(objectXML); | 82 | m_UnchangedEntity = SceneObjectSerializer.FromXml2Format(objectXML); |
91 | } | 83 | } |
92 | 84 | ||
93 | #endregion Constructors | 85 | #endregion Constructors |
diff --git a/OpenSim/Region/OptionalModules/ContentManagementSystem/MetaEntity.cs b/OpenSim/Region/OptionalModules/ContentManagementSystem/MetaEntity.cs index 7ff58da..184c55a 100644 --- a/OpenSim/Region/OptionalModules/ContentManagementSystem/MetaEntity.cs +++ b/OpenSim/Region/OptionalModules/ContentManagementSystem/MetaEntity.cs | |||
@@ -25,16 +25,6 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | #region Header | ||
29 | |||
30 | // MetaEntity.cs | ||
31 | // User: bongiojp | ||
32 | // | ||
33 | // TODO: | ||
34 | // Create a physics manager to the meta object if there isn't one or the object knows of no scene but the user wants physics enabled. | ||
35 | |||
36 | #endregion Header | ||
37 | |||
38 | using System; | 28 | using System; |
39 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
40 | using System.Drawing; | 30 | using System.Drawing; |
@@ -46,6 +36,7 @@ using Nini.Config; | |||
46 | using OpenSim.Framework; | 36 | using OpenSim.Framework; |
47 | using OpenSim.Region.Framework.Interfaces; | 37 | using OpenSim.Region.Framework.Interfaces; |
48 | using OpenSim.Region.Framework.Scenes; | 38 | using OpenSim.Region.Framework.Scenes; |
39 | using OpenSim.Region.Framework.Scenes.Serialization; | ||
49 | using OpenSim.Region.Physics.Manager; | 40 | using OpenSim.Region.Physics.Manager; |
50 | 41 | ||
51 | using log4net; | 42 | using log4net; |
@@ -98,7 +89,7 @@ namespace OpenSim.Region.OptionalModules.ContentManagement | |||
98 | /// </summary> | 89 | /// </summary> |
99 | public MetaEntity(string objectXML, Scene scene, bool physics) | 90 | public MetaEntity(string objectXML, Scene scene, bool physics) |
100 | { | 91 | { |
101 | m_Entity = new SceneObjectGroup(objectXML); | 92 | m_Entity = SceneObjectSerializer.FromXml2Format(objectXML); |
102 | m_Entity.SetScene(scene); | 93 | m_Entity.SetScene(scene); |
103 | Initialize(physics); | 94 | Initialize(physics); |
104 | } | 95 | } |
diff --git a/OpenSim/Region/OptionalModules/ContentManagementSystem/PointMetaEntity.cs b/OpenSim/Region/OptionalModules/ContentManagementSystem/PointMetaEntity.cs index 22f09fd..da3ba46 100644 --- a/OpenSim/Region/OptionalModules/ContentManagementSystem/PointMetaEntity.cs +++ b/OpenSim/Region/OptionalModules/ContentManagementSystem/PointMetaEntity.cs | |||
@@ -25,16 +25,6 @@ | |||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | */ | 26 | */ |
27 | 27 | ||
28 | #region Header | ||
29 | |||
30 | // PointMetaEntity.cs created with MonoDevelop | ||
31 | // User: bongiojp at 3:03 PMĀ 8/6/2008 | ||
32 | // | ||
33 | // To change standard headers go to Edit->Preferences->Coding->Standard Headers | ||
34 | // | ||
35 | |||
36 | #endregion Header | ||
37 | |||
38 | using System; | 28 | using System; |
39 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
40 | using System.Drawing; | 30 | using System.Drawing; |