Some work on cleanly removing Regions.

This commit is contained in:
MW
2007-11-13 12:23:05 +00:00
parent 7f8a69f181
commit 297cc7ef4f
7 changed files with 87 additions and 30 deletions

View File

@@ -179,6 +179,35 @@ namespace OpenSim.Region.Environment.Scenes
}
}
public bool TryGetScene(string regionName, out Scene scene)
{
foreach (Scene mscene in m_localScenes)
{
if (String.Compare(mscene.RegionInfo.RegionName, regionName, true) == 0)
{
scene = mscene;
return true;
}
}
scene = null;
return false;
}
public bool TryGetScene(LLUUID regionID, out Scene scene)
{
foreach (Scene mscene in m_localScenes)
{
if (mscene.RegionInfo.RegionID == regionID)
{
scene = mscene;
return true;
}
}
scene = null;
return false;
}
public void SetDebugPacketOnCurrentScene(LogBase log, int newDebug)
{
ForEachCurrentScene(delegate(Scene scene)