本文整理汇总了C#中IScene.StackModuleInterface方法的典型用法代码示例。如果您正苦于以下问题:C# IScene.StackModuleInterface方法的具体用法?C# IScene.StackModuleInterface怎么用?C# IScene.StackModuleInterface使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IScene
的用法示例。
在下文中一共展示了IScene.StackModuleInterface方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: AddRegion
public void AddRegion (IScene scene)
{
if (!m_enableWindlight)
return;
m_scene = scene;
m_scene.RegisterModuleInterface<IWindLightSettingsModule>(this);
m_scene.StackModuleInterface<IAuroraBackupModule>(this);
IRegionInfoConnector RegionInfoConnector = Aurora.DataManager.DataManager.RequestPlugin<IRegionInfoConnector>();
if (RegionInfoConnector != null)
m_WindlightSettings = RegionInfoConnector.LoadRegionWindlightSettings(m_scene.RegionInfo.RegionID);
scene.EventManager.OnClientClosed += EventManager_OnClientClosed;
scene.EventManager.OnRegisterCaps += OnRegisterCaps;
scene.EventManager.OnMakeRootAgent += OnMakeRootAgent;
scene.EventManager.OnSignificantClientMovement += OnSignificantClientMovement;
scene.EventManager.OnAvatarEnteringNewParcel += AvatarEnteringNewParcel;
}
示例2: InternalSceneBackup
public InternalSceneBackup(IScene scene)
{
m_scene = scene;
m_scene.StackModuleInterface<IWhiteCoreBackupModule>(this);
m_scene.RegisterModuleInterface<IBackupModule>(this);
if (MainConsole.Instance != null)
{
MainConsole.Instance.Commands.AddCommand("delete object owner",
"delete object owner <UUID>",
"Delete object by owner", HandleDeleteObject, true, false);
MainConsole.Instance.Commands.AddCommand("delete object creator",
"delete object creator <UUID>",
"Delete object by creator", HandleDeleteObject, true, false);
MainConsole.Instance.Commands.AddCommand("delete object uuid",
"delete object uuid <UUID>",
"Delete object by uuid", HandleDeleteObject, true, false);
MainConsole.Instance.Commands.AddCommand("delete object name",
"delete object name <name>",
"Delete object by name", HandleDeleteObject, true, false);
}
}
示例3: Initialise
public void Initialise(IScene scene, IConfigSource source, ISimulationBase simBase)
{
scene.StackModuleInterface<IWhiteCoreBackupModule>(this);
m_registry = simBase.ApplicationRegistry;
}
示例4: Initialise
public void Initialise(IScene scene, IConfigSource source, ISimulationBase openSimBase)
{
scene.StackModuleInterface<IAuroraBackupModule>(this);
}