diff options
author | Justin Clark-Casey (justincc) | 2012-07-19 21:54:50 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-07-19 21:54:50 +0100 |
commit | e9a121e1b203e8880bcaf85d35612fc6706b281a (patch) | |
tree | 70eb7b09b1b25f432bf4f7e47c684b68cb849126 /OpenSim/Region/Framework/Scenes/Scene.cs | |
parent | Add basic TestCreateRootScenePresence() regression test (diff) | |
download | opensim-SC-e9a121e1b203e8880bcaf85d35612fc6706b281a.zip opensim-SC-e9a121e1b203e8880bcaf85d35612fc6706b281a.tar.gz opensim-SC-e9a121e1b203e8880bcaf85d35612fc6706b281a.tar.bz2 opensim-SC-e9a121e1b203e8880bcaf85d35612fc6706b281a.tar.xz |
Add TestCreateDuplicateRootScenePresence() regression test.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Scene.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 6d8ee7b..36452de 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs | |||
@@ -4470,6 +4470,23 @@ namespace OpenSim.Region.Framework.Scenes | |||
4470 | } | 4470 | } |
4471 | 4471 | ||
4472 | /// <summary> | 4472 | /// <summary> |
4473 | /// Gets all the scene presences in this scene. | ||
4474 | /// </summary> | ||
4475 | /// <remarks> | ||
4476 | /// This method will return both root and child scene presences. | ||
4477 | /// | ||
4478 | /// Consider using ForEachScenePresence() or ForEachRootScenePresence() if possible since these will not | ||
4479 | /// involving creating a new List object. | ||
4480 | /// </remarks> | ||
4481 | /// <returns> | ||
4482 | /// A list of the scene presences. Adding or removing from the list will not affect the presences in the scene. | ||
4483 | /// </returns> | ||
4484 | public List<ScenePresence> GetScenePresences() | ||
4485 | { | ||
4486 | return new List<ScenePresence>(m_sceneGraph.GetScenePresences()); | ||
4487 | } | ||
4488 | |||
4489 | /// <summary> | ||
4473 | /// Performs action on all avatars in the scene (root scene presences) | 4490 | /// Performs action on all avatars in the scene (root scene presences) |
4474 | /// Avatars may be an NPC or a 'real' client. | 4491 | /// Avatars may be an NPC or a 'real' client. |
4475 | /// </summary> | 4492 | /// </summary> |