aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Scene.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-05-22 22:21:58 +0000
committerJustin Clarke Casey2008-05-22 22:21:58 +0000
commit0c94da830557fe17f2ff40b04031255375397717 (patch)
treec6512aa672c2123d035dd7a687e682af240c47b6 /OpenSim/Region/Environment/Scenes/Scene.cs
parent* Add (DEPRECATED) to load-xml/save-xml region console help (diff)
downloadopensim-SC_OLD-0c94da830557fe17f2ff40b04031255375397717.zip
opensim-SC_OLD-0c94da830557fe17f2ff40b04031255375397717.tar.gz
opensim-SC_OLD-0c94da830557fe17f2ff40b04031255375397717.tar.bz2
opensim-SC_OLD-0c94da830557fe17f2ff40b04031255375397717.tar.xz
* Plug in stubbed out archiver module
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.cs27
1 files changed, 23 insertions, 4 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs
index 8c95a0d..3ede889 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.cs
@@ -40,6 +40,7 @@ using OpenSim.Framework.Communications;
40using OpenSim.Framework.Communications.Cache; 40using OpenSim.Framework.Communications.Cache;
41using OpenSim.Framework.Servers; 41using OpenSim.Framework.Servers;
42using OpenSim.Region.Environment.Interfaces; 42using OpenSim.Region.Environment.Interfaces;
43using OpenSim.Region.Environment.Modules.World.Archiver;
43using OpenSim.Region.Environment.Modules.World.Terrain; 44using OpenSim.Region.Environment.Modules.World.Terrain;
44using OpenSim.Region.Environment.Scenes.Scripting; 45using OpenSim.Region.Environment.Scenes.Scripting;
45using OpenSim.Region.Physics.Manager; 46using OpenSim.Region.Physics.Manager;
@@ -58,7 +59,6 @@ namespace OpenSim.Region.Environment.Scenes
58 public SynchronizeSceneHandler SynchronizeScene = null; 59 public SynchronizeSceneHandler SynchronizeScene = null;
59 public int splitID = 0; 60 public int splitID = 0;
60 61
61
62 #region Fields 62 #region Fields
63 63
64 protected Timer m_heartbeatTimer = new Timer(); 64 protected Timer m_heartbeatTimer = new Timer();
@@ -138,7 +138,6 @@ namespace OpenSim.Region.Environment.Scenes
138 private int m_update_terrain = 50; 138 private int m_update_terrain = 50;
139 private int m_update_land = 1; 139 private int m_update_land = 1;
140 140
141
142 private int frameMS = 0; 141 private int frameMS = 0;
143 private int physicsMS2 = 0; 142 private int physicsMS2 = 0;
144 private int physicsMS = 0; 143 private int physicsMS = 0;
@@ -631,7 +630,7 @@ namespace OpenSim.Region.Environment.Scenes
631 } 630 }
632 631
633 /// <summary> 632 /// <summary>
634 /// Sets up references to loaded modules required by thie scene 633 /// Sets up references to modules required by the scene
635 /// </summary> 634 /// </summary>
636 public void SetModuleInterfaces() 635 public void SetModuleInterfaces()
637 { 636 {
@@ -1043,7 +1042,7 @@ namespace OpenSim.Region.Environment.Scenes
1043 //} 1042 //}
1044 //else 1043 //else
1045 //{ 1044 //{
1046 float tmpval = (float)hm[x, y]; 1045 //float tmpval = (float)hm[x, y];
1047 float heightvalue = (float)hm[x, y]; 1046 float heightvalue = (float)hm[x, y];
1048 1047
1049 if ((float)heightvalue > m_regInfo.EstateSettings.waterHeight) 1048 if ((float)heightvalue > m_regInfo.EstateSettings.waterHeight)
@@ -1380,6 +1379,26 @@ namespace OpenSim.Region.Environment.Scenes
1380 { 1379 {
1381 m_sceneXmlLoader.SavePrimsToXml2(fileName); 1380 m_sceneXmlLoader.SavePrimsToXml2(fileName);
1382 } 1381 }
1382
1383 /// <summary>
1384 /// Load a prim archive into the scene. This loads both prims and their assets.
1385 /// </summary>
1386 /// <param name="filePath"></param>
1387 public void LoadPrimsFromArchive(string filePath)
1388 {
1389 IRegionArchiver archiver = RequestModuleInterface<IRegionArchiver>();
1390 archiver.DearchiveRegion(this, filePath);
1391 }
1392
1393 /// <summary>
1394 /// Save the prims in the scene to an archive. This saves both prims and their assets.
1395 /// </summary>
1396 /// <param name="filePath"></param>
1397 public void SavePrimsToArchive(string filePath)
1398 {
1399 IRegionArchiver archiver = RequestModuleInterface<IRegionArchiver>();
1400 archiver.ArchiveRegion(this, filePath);
1401 }
1383 1402
1384 /// <summary> 1403 /// <summary>
1385 /// Locate New region Handle and offset the prim position for the new region 1404 /// Locate New region Handle and offset the prim position for the new region