diff options
author | lbsa71 | 2007-09-24 04:49:05 +0000 |
---|---|---|
committer | lbsa71 | 2007-09-24 04:49:05 +0000 |
commit | 13c1c33ed410566fa341c5affcb93f540f1df95f (patch) | |
tree | aa9ca8ec0c0464b19bf27dc9344aac1963bfd1e4 /OpenSim/Region/Environment/Scenes/SceneManager.cs | |
parent | *** CHANGED CONFIG BEHAVIOUR *** (diff) | |
download | opensim-SC_OLD-13c1c33ed410566fa341c5affcb93f540f1df95f.zip opensim-SC_OLD-13c1c33ed410566fa341c5affcb93f540f1df95f.tar.gz opensim-SC_OLD-13c1c33ed410566fa341c5affcb93f540f1df95f.tar.bz2 opensim-SC_OLD-13c1c33ed410566fa341c5affcb93f540f1df95f.tar.xz |
* Added TryGetAvatarByName
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneManager.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneManager.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneManager.cs b/OpenSim/Region/Environment/Scenes/SceneManager.cs index 79fdff7..196976c 100644 --- a/OpenSim/Region/Environment/Scenes/SceneManager.cs +++ b/OpenSim/Region/Environment/Scenes/SceneManager.cs | |||
@@ -233,5 +233,19 @@ namespace OpenSim.Region.Environment.Scenes | |||
233 | m_localScenes.Remove(scene); | 233 | m_localScenes.Remove(scene); |
234 | scene.Close(); | 234 | scene.Close(); |
235 | } | 235 | } |
236 | |||
237 | public bool TryGetAvatarByName(string avatarName, out ScenePresence avatar) | ||
238 | { | ||
239 | foreach (Scene scene in m_localScenes) | ||
240 | { | ||
241 | if (scene.TryGetAvatarByName(avatarName, out avatar)) | ||
242 | { | ||
243 | return true; | ||
244 | } | ||
245 | } | ||
246 | |||
247 | avatar = null; | ||
248 | return false; | ||
249 | } | ||
236 | } | 250 | } |
237 | } \ No newline at end of file | 251 | } \ No newline at end of file |