diff options
author | Justin Clarke Casey | 2008-05-30 17:52:14 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-05-30 17:52:14 +0000 |
commit | 4f237f3ae3b8561de0dacd1ec0e937ec7a8e0307 (patch) | |
tree | 728db0e5d0691b553b8ebe4e5a13560c4657c7e2 /OpenSim/Region/Environment/Modules/World/Serialiser/SerialiserModule.cs | |
parent | Mantis#1422. Thank you kindly, Xantor for your llLoopSound() (diff) | |
download | opensim-SC_OLD-4f237f3ae3b8561de0dacd1ec0e937ec7a8e0307.zip opensim-SC_OLD-4f237f3ae3b8561de0dacd1ec0e937ec7a8e0307.tar.gz opensim-SC_OLD-4f237f3ae3b8561de0dacd1ec0e937ec7a8e0307.tar.bz2 opensim-SC_OLD-4f237f3ae3b8561de0dacd1ec0e937ec7a8e0307.tar.xz |
* Crudely migrate SceneXmlLoader into the Serializer module
Diffstat (limited to 'OpenSim/Region/Environment/Modules/World/Serialiser/SerialiserModule.cs')
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Serialiser/SerialiserModule.cs | 35 |
1 files changed, 33 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Serialiser/SerialiserModule.cs b/OpenSim/Region/Environment/Modules/World/Serialiser/SerialiserModule.cs index bd8a0f4..bfa0a43 100644 --- a/OpenSim/Region/Environment/Modules/World/Serialiser/SerialiserModule.cs +++ b/OpenSim/Region/Environment/Modules/World/Serialiser/SerialiserModule.cs | |||
@@ -28,6 +28,7 @@ | |||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.IO; | 30 | using System.IO; |
31 | using libsecondlife; | ||
31 | using Nini.Config; | 32 | using Nini.Config; |
32 | using OpenSim.Region.Environment.Interfaces; | 33 | using OpenSim.Region.Environment.Interfaces; |
33 | using OpenSim.Region.Environment.Modules.Framework.InterfaceCommander; | 34 | using OpenSim.Region.Environment.Modules.Framework.InterfaceCommander; |
@@ -85,7 +86,37 @@ namespace OpenSim.Region.Environment.Modules.World.Serialiser | |||
85 | #endregion | 86 | #endregion |
86 | 87 | ||
87 | #region IRegionSerialiser Members | 88 | #region IRegionSerialiser Members |
88 | 89 | ||
90 | public void LoadPrimsFromXml(Scene scene, string fileName, bool newIDS, LLVector3 loadOffset) | ||
91 | { | ||
92 | SceneXmlLoader.LoadPrimsFromXml(scene, fileName, newIDS, loadOffset); | ||
93 | } | ||
94 | |||
95 | public void SavePrimsToXml(Scene scene, string fileName) | ||
96 | { | ||
97 | SceneXmlLoader.SavePrimsToXml(scene, fileName); | ||
98 | } | ||
99 | |||
100 | public void LoadPrimsFromXml2(Scene scene, string fileName) | ||
101 | { | ||
102 | SceneXmlLoader.LoadPrimsFromXml2(scene, fileName); | ||
103 | } | ||
104 | |||
105 | public void SavePrimsToXml2(Scene scene, string fileName) | ||
106 | { | ||
107 | SceneXmlLoader.SavePrimsToXml2(scene, fileName); | ||
108 | } | ||
109 | |||
110 | public void LoadGroupFromXml2String(Scene scene, string xmlString) | ||
111 | { | ||
112 | SceneXmlLoader.LoadGroupFromXml2String(scene, xmlString); | ||
113 | } | ||
114 | |||
115 | public string SavePrimGroupToXML2String(SceneObjectGroup grp) | ||
116 | { | ||
117 | return SceneXmlLoader.SavePrimGroupToXML2String(grp); | ||
118 | } | ||
119 | |||
89 | public List<string> SerialiseRegion(Scene scene, string saveDir) | 120 | public List<string> SerialiseRegion(Scene scene, string saveDir) |
90 | { | 121 | { |
91 | List<string> results = new List<string>(); | 122 | List<string> results = new List<string>(); |
@@ -165,4 +196,4 @@ namespace OpenSim.Region.Environment.Modules.World.Serialiser | |||
165 | m_commander.RegisterCommand("save-all", serialiseAllScenesCommand); | 196 | m_commander.RegisterCommand("save-all", serialiseAllScenesCommand); |
166 | } | 197 | } |
167 | } | 198 | } |
168 | } \ No newline at end of file | 199 | } |