aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneManager.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-12-19 19:14:52 +0000
committerJustin Clarke Casey2008-12-19 19:14:52 +0000
commit667a935fffd6741ab49137870a9e343315849ef7 (patch)
tree9dcbec35df45f769a448ba08da41499d823b6ae7 /OpenSim/Region/Environment/Scenes/SceneManager.cs
parent* refactor: Rename IRegionSerialiser and move into interfaces namespace (diff)
downloadopensim-SC_OLD-667a935fffd6741ab49137870a9e343315849ef7.zip
opensim-SC_OLD-667a935fffd6741ab49137870a9e343315849ef7.tar.gz
opensim-SC_OLD-667a935fffd6741ab49137870a9e343315849ef7.tar.bz2
opensim-SC_OLD-667a935fffd6741ab49137870a9e343315849ef7.tar.xz
* refactor: remove xml serialization wrappers from Scene
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneManager.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneManager.cs8
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneManager.cs b/OpenSim/Region/Environment/Scenes/SceneManager.cs
index 6072b70..b973ced 100644
--- a/OpenSim/Region/Environment/Scenes/SceneManager.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneManager.cs
@@ -184,7 +184,9 @@ namespace OpenSim.Region.Environment.Scenes
184 /// <param name="filename"></param> 184 /// <param name="filename"></param>
185 public void SaveCurrentSceneToXml(string filename) 185 public void SaveCurrentSceneToXml(string filename)
186 { 186 {
187 CurrentOrFirstScene.SavePrimsToXml(filename); 187 IRegionSerialiserModule serialiser = CurrentOrFirstScene.RequestModuleInterface<IRegionSerialiserModule>();
188 if (serialiser != null)
189 serialiser.SavePrimsToXml(CurrentOrFirstScene, filename);
188 } 190 }
189 191
190 /// <summary> 192 /// <summary>
@@ -195,7 +197,9 @@ namespace OpenSim.Region.Environment.Scenes
195 /// <param name="loadOffset"></param> 197 /// <param name="loadOffset"></param>
196 public void LoadCurrentSceneFromXml(string filename, bool generateNewIDs, Vector3 loadOffset) 198 public void LoadCurrentSceneFromXml(string filename, bool generateNewIDs, Vector3 loadOffset)
197 { 199 {
198 CurrentOrFirstScene.LoadPrimsFromXml(filename, generateNewIDs, loadOffset); 200 IRegionSerialiserModule serialiser = CurrentOrFirstScene.RequestModuleInterface<IRegionSerialiserModule>();
201 if (serialiser != null)
202 serialiser.LoadPrimsFromXml(CurrentOrFirstScene, filename, generateNewIDs, loadOffset);
199 } 203 }
200 204
201 /// <summary> 205 /// <summary>