aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-12-19 18:33:03 +0000
committerJustin Clarke Casey2008-12-19 18:33:03 +0000
commit583fa73126e425d98f12a6e5cef5487a3eb48e52 (patch)
treee8383ce36027550c664c5449b232e25f3e121a73 /OpenSim/Region/Environment/Scenes
parent* Add missing file from last commit (diff)
downloadopensim-SC_OLD-583fa73126e425d98f12a6e5cef5487a3eb48e52.zip
opensim-SC_OLD-583fa73126e425d98f12a6e5cef5487a3eb48e52.tar.gz
opensim-SC_OLD-583fa73126e425d98f12a6e5cef5487a3eb48e52.tar.bz2
opensim-SC_OLD-583fa73126e425d98f12a6e5cef5487a3eb48e52.tar.xz
* refactor: Remove archiver module scene wrappers
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.cs24
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneManager.cs8
2 files changed, 6 insertions, 26 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs
index eecfd70..4272f22 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.cs
@@ -142,7 +142,6 @@ namespace OpenSim.Region.Environment.Scenes
142 protected IWorldComm m_worldCommModule; 142 protected IWorldComm m_worldCommModule;
143 protected IAvatarFactory m_AvatarFactory; 143 protected IAvatarFactory m_AvatarFactory;
144 protected IConfigSource m_config; 144 protected IConfigSource m_config;
145 protected IRegionArchiver m_archiver;
146 protected IRegionSerialiser m_serialiser; 145 protected IRegionSerialiser m_serialiser;
147 146
148 // Central Update Loop 147 // Central Update Loop
@@ -729,7 +728,6 @@ namespace OpenSim.Region.Environment.Scenes
729 m_worldCommModule = RequestModuleInterface<IWorldComm>(); 728 m_worldCommModule = RequestModuleInterface<IWorldComm>();
730 XferManager = RequestModuleInterface<IXfer>(); 729 XferManager = RequestModuleInterface<IXfer>();
731 m_AvatarFactory = RequestModuleInterface<IAvatarFactory>(); 730 m_AvatarFactory = RequestModuleInterface<IAvatarFactory>();
732 m_archiver = RequestModuleInterface<IRegionArchiver>();
733 m_serialiser = RequestModuleInterface<IRegionSerialiser>(); 731 m_serialiser = RequestModuleInterface<IRegionSerialiser>();
734 } 732 }
735 733
@@ -1949,28 +1947,6 @@ namespace OpenSim.Region.Environment.Scenes
1949 } 1947 }
1950 1948
1951 /// <summary> 1949 /// <summary>
1952 /// Load a prim archive into the scene. This loads both prims and their assets.
1953 /// </summary>
1954 /// <param name="filePath"></param>
1955 public void LoadPrimsFromArchive(string filePath)
1956 {
1957 m_log.InfoFormat("[SCENE]: Loading archive to region {0} from {1}", RegionInfo.RegionName, filePath);
1958
1959 m_archiver.DearchiveRegion(filePath);
1960 }
1961
1962 /// <summary>
1963 /// Save the prims in the scene to an archive. This saves both prims and their assets.
1964 /// </summary>
1965 /// <param name="filePath"></param>
1966 public void SavePrimsToArchive(string filePath)
1967 {
1968 m_log.InfoFormat("[SCENE]: Writing archive for region {0} to {1}", RegionInfo.RegionName, filePath);
1969
1970 m_archiver.ArchiveRegion(filePath);
1971 }
1972
1973 /// <summary>
1974 /// Move the given scene object into a new region depending on which region its absolute position has moved 1950 /// Move the given scene object into a new region depending on which region its absolute position has moved
1975 /// into. 1951 /// into.
1976 /// 1952 ///
diff --git a/OpenSim/Region/Environment/Scenes/SceneManager.cs b/OpenSim/Region/Environment/Scenes/SceneManager.cs
index bb74c20..6072b70 100644
--- a/OpenSim/Region/Environment/Scenes/SceneManager.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneManager.cs
@@ -227,7 +227,9 @@ namespace OpenSim.Region.Environment.Scenes
227 /// <param name="filename"></param> 227 /// <param name="filename"></param>
228 public void SaveCurrentSceneToArchive(string filename) 228 public void SaveCurrentSceneToArchive(string filename)
229 { 229 {
230 CurrentOrFirstScene.SavePrimsToArchive(filename); 230 IRegionArchiverModule archiver = CurrentOrFirstScene.RequestModuleInterface<IRegionArchiverModule>();
231 if (archiver != null)
232 archiver.ArchiveRegion(filename);
231 } 233 }
232 234
233 /// <summary> 235 /// <summary>
@@ -237,7 +239,9 @@ namespace OpenSim.Region.Environment.Scenes
237 /// <param name="filename"></param> 239 /// <param name="filename"></param>
238 public void LoadArchiveToCurrentScene(string filename) 240 public void LoadArchiveToCurrentScene(string filename)
239 { 241 {
240 CurrentOrFirstScene.LoadPrimsFromArchive(filename); 242 IRegionArchiverModule archiver = CurrentOrFirstScene.RequestModuleInterface<IRegionArchiverModule>();
243 if (archiver != null)
244 archiver.DearchiveRegion(filename);
241 } 245 }
242 246
243 public string SaveCurrentSceneMapToXmlString() 247 public string SaveCurrentSceneMapToXmlString()