当前位置: 首页>>代码示例>>C#>>正文


C# IScene.StackModuleInterface方法代码示例

本文整理汇总了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;
        }
开发者ID:HGExchange,项目名称:Aurora-Sim,代码行数:18,代码来源:WindLightSettingsModule.cs

示例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);
                }
            }
开发者ID:BogusCurry,项目名称:WhiteCore-Dev,代码行数:22,代码来源:Backup.cs

示例3: Initialise

 public void Initialise(IScene scene, IConfigSource source, ISimulationBase simBase)
 {
     scene.StackModuleInterface<IWhiteCoreBackupModule>(this);
     m_registry = simBase.ApplicationRegistry;
 }
开发者ID:QueenStarfinder,项目名称:WhiteCore-Dev,代码行数:5,代码来源:EstateInitializer.cs

示例4: Initialise

 public void Initialise(IScene scene, IConfigSource source, ISimulationBase openSimBase)
 {
     scene.StackModuleInterface<IAuroraBackupModule>(this);
 }
开发者ID:Gnu32,项目名称:Silverfin,代码行数:4,代码来源:EstateInitializer.cs


注:本文中的IScene.StackModuleInterface方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。