aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Scene.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-07-14 16:23:59 +0000
committerJustin Clarke Casey2008-07-14 16:23:59 +0000
commit9cb4ba9d6b8def715018aab7d69ab64b9cf875c0 (patch)
tree8930ebacd332290fc8cf3d8aae9b52c1ef9d8040 /OpenSim/Region/Environment/Scenes/Scene.cs
parentadding support for Xml2 serialization format to XmlRpcLoadXMLMethod. (diff)
downloadopensim-SC_OLD-9cb4ba9d6b8def715018aab7d69ab64b9cf875c0.zip
opensim-SC_OLD-9cb4ba9d6b8def715018aab7d69ab64b9cf875c0.tar.gz
opensim-SC_OLD-9cb4ba9d6b8def715018aab7d69ab64b9cf875c0.tar.bz2
opensim-SC_OLD-9cb4ba9d6b8def715018aab7d69ab64b9cf875c0.tar.xz
* For now, when loading an archive all the existing scene objects get deleted by default
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs
index a6a5264..ad9646f 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.cs
@@ -1684,6 +1684,23 @@ namespace OpenSim.Region.Environment.Scenes
1684 } 1684 }
1685 1685
1686 /// <summary> 1686 /// <summary>
1687 /// Delete every object from the scene
1688 /// </summary>
1689 public void DeleteAllSceneObjects()
1690 {
1691 lock (Entities)
1692 {
1693 ICollection<EntityBase> entities = new List<EntityBase>(Entities.Values);
1694
1695 foreach (EntityBase e in entities)
1696 {
1697 if (e is SceneObjectGroup)
1698 DeleteSceneObject((SceneObjectGroup)e);
1699 }
1700 }
1701 }
1702
1703 /// <summary>
1687 /// Delete the given object from the scene. 1704 /// Delete the given object from the scene.
1688 /// </summary> 1705 /// </summary>
1689 /// <param name="group"></param> 1706 /// <param name="group"></param>