本文整理匯總了C#中OpenSim.Region.Framework.Scenes.Scene.Close方法的典型用法代碼示例。如果您正苦於以下問題:C# Scene.Close方法的具體用法?C# Scene.Close怎麽用?C# Scene.Close使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類OpenSim.Region.Framework.Scenes.Scene
的用法示例。
在下文中一共展示了Scene.Close方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: CloseScene
public void CloseScene(Scene scene)
{
m_localScenes.Remove(scene);
scene.Close();
}
示例2: CloseRegion
/// <summary>
/// Remove a region from the simulator without deleting it permanently.
/// </summary>
/// <param name="scene"></param>
/// <returns></returns>
public void CloseRegion(Scene scene)
{
// only need to check this if we are not at the
// root level
if ((CurrentScene != null) && (CurrentScene.RegionInfo.RegionID == scene.RegionInfo.RegionID))
{
TrySetCurrentScene("..");
}
m_localScenes.Remove(scene);
scene.Close();
m_log.DebugFormat("[SceneManager]: Shutting down region modules for {0}", scene.RegionInfo.RegionName);
IRegionModulesController controller;
if (m_OpenSimBase.ApplicationRegistry.TryRequestModuleInterface<IRegionModulesController>(out controller))
{
controller.RemoveRegionFromModules(scene);
}
CloseModules(scene);
ShutdownClientServer(scene.RegionInfo);
}
示例3: CloseScene
public void CloseScene(Scene scene)
{
lock (m_localScenes)
m_localScenes.Remove(scene.RegionInfo.RegionID);
scene.Close();
}
示例4: CloseScene
public void CloseScene(Scene scene)
{
m_localScenesRwLock.AcquireWriterLock(-1);
try
{
m_localScenes.Remove(scene);
}
finally
{
m_localScenesRwLock.ReleaseWriterLock();
}
scene.Close();
}
示例5: Close
public void Close(Scene cscene)
{
if (!m_localScenes.ContainsKey(cscene.RegionInfo.RegionID))
return;
cscene.Close();
}