aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/Scene.cs
diff options
context:
space:
mode:
authorThomas Grimshaw2010-04-05 22:08:34 +0200
committerThomas Grimshaw2010-04-05 22:08:34 +0200
commitf34cc6b46949033803c79235b9d82da9bf9634dd (patch)
treed1117656803e210151e480b960184bc4524f129e /OpenSim/Region/Framework/Scenes/Scene.cs
parentChange land overlay to send group owned status properly (diff)
downloadopensim-SC-f34cc6b46949033803c79235b9d82da9bf9634dd.zip
opensim-SC-f34cc6b46949033803c79235b9d82da9bf9634dd.tar.gz
opensim-SC-f34cc6b46949033803c79235b9d82da9bf9634dd.tar.bz2
opensim-SC-f34cc6b46949033803c79235b9d82da9bf9634dd.tar.xz
Add a much cheaper agent count retrieval method. This is obsoleted by 0.7 so it can be reverted then.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index ab0d397..e5e6fc9 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -1523,7 +1523,7 @@ namespace OpenSim.Region.Framework.Scenes
1523 public void SaveTerrain() 1523 public void SaveTerrain()
1524 { 1524 {
1525 m_storageManager.DataStore.StoreTerrain(Heightmap.GetDoubles(), RegionInfo.RegionID); 1525 m_storageManager.DataStore.StoreTerrain(Heightmap.GetDoubles(), RegionInfo.RegionID);
1526 } 1526 }
1527 1527
1528 public void StoreWindlightProfile(RegionMeta7WindlightData wl) 1528 public void StoreWindlightProfile(RegionMeta7WindlightData wl)
1529 { 1529 {
@@ -4339,6 +4339,14 @@ namespace OpenSim.Region.Framework.Scenes
4339 } 4339 }
4340 4340
4341 /// <summary> 4341 /// <summary>
4342 /// Cheaply return the number of avatars in a region (without fetching a list object)
4343 /// </summary>
4344 public int GetRootAgentCount()
4345 {
4346 return m_sceneGraph.GetRootAgentCount();
4347 }
4348
4349 /// <summary>
4342 /// Return a list of all ScenePresences in this region. This returns child agents as well as root agents. 4350 /// Return a list of all ScenePresences in this region. This returns child agents as well as root agents.
4343 /// This list is a new object, so it can be iterated over without locking. 4351 /// This list is a new object, so it can be iterated over without locking.
4344 /// </summary> 4352 /// </summary>