diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 10 |
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> |