本文整理汇总了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();
}