aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneManager.cs
diff options
context:
space:
mode:
authorMW2007-11-13 12:23:05 +0000
committerMW2007-11-13 12:23:05 +0000
commit297cc7ef4f44dc783ebee817f48c205b04aa68f7 (patch)
treed401f5e38d03a0ff8bb4996c9bfed8ae7962f5c9 /OpenSim/Region/Environment/Scenes/SceneManager.cs
parentSome work on being able to set/send a users Buddylist info. (added handling c... (diff)
downloadopensim-SC_OLD-297cc7ef4f44dc783ebee817f48c205b04aa68f7.zip
opensim-SC_OLD-297cc7ef4f44dc783ebee817f48c205b04aa68f7.tar.gz
opensim-SC_OLD-297cc7ef4f44dc783ebee817f48c205b04aa68f7.tar.bz2
opensim-SC_OLD-297cc7ef4f44dc783ebee817f48c205b04aa68f7.tar.xz
Some work on cleanly removing Regions.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneManager.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneManager.cs29
1 files changed, 29 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneManager.cs b/OpenSim/Region/Environment/Scenes/SceneManager.cs
index 75e2a41..da553bc 100644
--- a/OpenSim/Region/Environment/Scenes/SceneManager.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneManager.cs
@@ -179,6 +179,35 @@ namespace OpenSim.Region.Environment.Scenes
179 } 179 }
180 } 180 }
181 181
182 public bool TryGetScene(string regionName, out Scene scene)
183 {
184 foreach (Scene mscene in m_localScenes)
185 {
186 if (String.Compare(mscene.RegionInfo.RegionName, regionName, true) == 0)
187 {
188 scene = mscene;
189 return true;
190 }
191 }
192 scene = null;
193 return false;
194 }
195
196 public bool TryGetScene(LLUUID regionID, out Scene scene)
197 {
198 foreach (Scene mscene in m_localScenes)
199 {
200 if (mscene.RegionInfo.RegionID == regionID)
201 {
202 scene = mscene;
203 return true;
204 }
205 }
206 scene = null;
207 return false;
208 }
209
210
182 public void SetDebugPacketOnCurrentScene(LogBase log, int newDebug) 211 public void SetDebugPacketOnCurrentScene(LogBase log, int newDebug)
183 { 212 {
184 ForEachCurrentScene(delegate(Scene scene) 213 ForEachCurrentScene(delegate(Scene scene)