• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IDialogModule类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IDialogModule的典型用法代码示例。如果您正苦于以下问题:C# IDialogModule类的具体用法?C# IDialogModule怎么用?C# IDialogModule使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IDialogModule类属于命名空间,在下文中一共展示了IDialogModule类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Initialise

 public void Initialise(Scene scene, IConfigSource source)
 {
     m_scene = scene;
     m_dialogModule = m_scene.RequestModuleInterface<IDialogModule>();
     m_scene.RegisterModuleInterface<IGodsModule>(this);
     m_scene.EventManager.OnNewClient += SubscribeToClientEvents;
 }
开发者ID:BackupTheBerlios,项目名称:seleon,代码行数:7,代码来源:GodsModule.cs


示例2: AddRegion

 public void AddRegion(Scene scene)
 {
     m_scene = scene;
     m_dialogModule = m_scene.RequestModuleInterface<IDialogModule>();
     m_scene.RegisterModuleInterface<IAttachmentsModule>(this);
     m_scene.EventManager.OnNewClient += SubscribeToClientEvents;
     // TODO: Should probably be subscribing to CloseClient too, but this doesn't yet give us IClientAPI
 }
开发者ID:NovaGrid,项目名称:opensim,代码行数:8,代码来源:AttachmentsModule.cs


示例3: AddRegion

 public void AddRegion(Scene scene)
 {
     if (ENABLED)
     {
         m_scene = scene;
         m_scene.EventManager.OnSceneGroupMove += OnSceneGroupMove;
         m_dialogMod = m_scene.RequestModuleInterface<IDialogModule>();
     }
 }
开发者ID:hippie-b,项目名称:opensim,代码行数:9,代码来源:DAExampleModule.cs


示例4: AddRegion

        public void AddRegion(Scene scene)
        {
            if (ENABLED)
            {
                m_scene = scene;
                m_scene.EventManager.OnSceneGroupMove += OnSceneGroupMove;
                m_dialogMod = m_scene.RequestModuleInterface<IDialogModule>();

                m_log.DebugFormat("[DA EXAMPLE MODULE]: Added region {0}", m_scene.Name);
            }
        }
开发者ID:BogusCurry,项目名称:arribasim-dev,代码行数:11,代码来源:DAExampleModule.cs


示例5: RegionLoaded

 public void RegionLoaded(Scene scene)
 {
      m_userManager = m_scene.RequestModuleInterface<IUserManagement>();         
      m_primCountModule = m_scene.RequestModuleInterface<IPrimCountModule>();
      m_Dialog = m_scene.RequestModuleInterface<IDialogModule>();
 }
开发者ID:AkiraSonoda,项目名称:akisim,代码行数:6,代码来源:LandManagementModule.cs


示例6: RegionLoaded

 public void RegionLoaded(IScene scene)
 {
     m_DialogModule = m_scene.RequestModuleInterface<IDialogModule> ();
     m_scene.EventManager.OnStartupFullyComplete += EventManager_OnStartupFullyComplete;
 }
开发者ID:CaseyraeStarfinder,项目名称:WhiteCore-Dev,代码行数:5,代码来源:RestartModule.cs


示例7: SetModuleInterfaces

        /// <summary>
        /// Sets up references to modules required by the scene
        /// </summary>
        public void SetModuleInterfaces()
        {
            m_xmlrpcModule = RequestModuleInterface<IXMLRPC>();
            m_worldCommModule = RequestModuleInterface<IWorldComm>();
            XferManager = RequestModuleInterface<IXfer>();
            m_AvatarFactory = RequestModuleInterface<IAvatarFactory>();
            AttachmentsModule = RequestModuleInterface<IAttachmentsModule>();
            m_serialiser = RequestModuleInterface<IRegionSerialiserModule>();
            m_dialogModule = RequestModuleInterface<IDialogModule>();
            m_capsModule = RequestModuleInterface<ICapabilitiesModule>();
            m_teleportModule = RequestModuleInterface<IEntityTransferModule>();

            // Shoving this in here for now, because we have the needed
            // interfaces at this point
            //
            // TODO: Find a better place for this
            //
            while (m_regInfo.EstateSettings.EstateOwner == UUID.Zero && MainConsole.Instance != null)
            {
                MainConsole.Instance.Output("The current estate " + m_regInfo.EstateSettings.EstateName + " has no owner set.");
                List<char> excluded = new List<char>(new char[1] { ' ' });
                string first = MainConsole.Instance.CmdPrompt("Estate owner first name", "Test", excluded);
                string last = MainConsole.Instance.CmdPrompt("Estate owner last name", "User", excluded);

                UserAccount account = UserAccountService.GetUserAccount(m_regInfo.ScopeID, first, last);

                if (account == null)
                {
                    // Create a new account
                    account = new UserAccount(m_regInfo.ScopeID, first, last, String.Empty);
                    if (account.ServiceURLs == null || (account.ServiceURLs != null && account.ServiceURLs.Count == 0))
                    {
                        account.ServiceURLs = new Dictionary<string, object>();
                        account.ServiceURLs["HomeURI"] = string.Empty;
                        account.ServiceURLs["GatekeeperURI"] = string.Empty;
                        account.ServiceURLs["InventoryServerURI"] = string.Empty;
                        account.ServiceURLs["AssetServerURI"] = string.Empty;
                    }

                    if (UserAccountService.StoreUserAccount(account))
                    {
                        string password = MainConsole.Instance.PasswdPrompt("Password");
                        string email = MainConsole.Instance.CmdPrompt("Email", "");

                        account.Email = email;
                        UserAccountService.StoreUserAccount(account);

                        bool success = false;
                        success = AuthenticationService.SetPassword(account.PrincipalID, password);
                        if (!success)
                            m_log.WarnFormat("[USER ACCOUNT SERVICE]: Unable to set password for account {0} {1}.",
                               first, last);

                        GridRegion home = null;
                        if (GridService != null)
                        {
                            List<GridRegion> defaultRegions = GridService.GetDefaultRegions(UUID.Zero);
                            if (defaultRegions != null && defaultRegions.Count >= 1)
                                home = defaultRegions[0];

                            if (GridUserService != null && home != null)
                                GridUserService.SetHome(account.PrincipalID.ToString(), home.RegionID, new Vector3(128, 128, 0), new Vector3(0, 1, 0));
                            else
                                m_log.WarnFormat("[USER ACCOUNT SERVICE]: Unable to set home for account {0} {1}.",
                                   first, last);

                        }
                        else
                            m_log.WarnFormat("[USER ACCOUNT SERVICE]: Unable to retrieve home region for account {0} {1}.",
                               first, last);

                        if (InventoryService != null)
                            success = InventoryService.CreateUserInventory(account.PrincipalID);
                        if (!success)
                            m_log.WarnFormat("[USER ACCOUNT SERVICE]: Unable to create inventory for account {0} {1}.",
                               first, last);


                        m_log.InfoFormat("[USER ACCOUNT SERVICE]: Account {0} {1} created successfully", first, last);

                        m_regInfo.EstateSettings.EstateOwner = account.PrincipalID;
                        m_regInfo.EstateSettings.Save();
                    }
                    else
                        m_log.ErrorFormat("[SCENE]: Unable to store account. If this simulator is connected to a grid, you must create the estate owner account first.");
                }
                else
                {
                    m_regInfo.EstateSettings.EstateOwner = account.PrincipalID;
                    m_regInfo.EstateSettings.Save();
                }
            }
        }
开发者ID:shangcheng,项目名称:Aurora,代码行数:96,代码来源:Scene.cs


示例8: RegionState

        // Setup runtime variable values

        public RegionState(Scene p_scene, IConfig p_config)
        {
            scene = p_scene;
            config = p_config;

            Region = scene.RegionInfo.RegionName;
            Host = scene.RegionInfo.ExternalHostName;
            LocX = Convert.ToString(scene.RegionInfo.RegionLocX);
            LocY = Convert.ToString(scene.RegionInfo.RegionLocY);
            IDK = Convert.ToString(_idk_++);

            showAlert = config.GetBoolean("alert_show", false);
            string alertServerInfo = String.Empty;

            if (showAlert)
            {
                bool showAlertServerInfo = config.GetBoolean("alert_show_serverinfo", true);

                if (showAlertServerInfo)
                    alertServerInfo = String.Format("\nServer: {0}\nPort: {1}\nChannel: {2}\n\n",
                        config.GetString("server", ""), config.GetString("port", ""), config.GetString("channel", ""));

                string alertPreMessage = config.GetString("alert_msg_pre", "This region is linked to Irc.");
                string alertPostMessage = config.GetString("alert_msg_post", "Everything you say in public chat can be listened.");

                alertMessage = String.Format("{0}\n{1}{2}", alertPreMessage, alertServerInfo, alertPostMessage);

                dialogModule = scene.RequestModuleInterface<IDialogModule>();
            }

            // OpenChannel conditionally establishes a connection to the
            // IRC server. The request will either succeed, or it will
            // throw an exception.

            ChannelState.OpenChannel(this, config);

            // Connect channel to world events

            scene.EventManager.OnChatFromWorld += OnSimChat;
            scene.EventManager.OnChatFromClient += OnSimChat;
            scene.EventManager.OnMakeRootAgent += OnMakeRootAgent;
            scene.EventManager.OnMakeChildAgent += OnMakeChildAgent;

            m_log.InfoFormat("[IRC-Region {0}] Initialization complete", Region);

        }
开发者ID:CassieEllen,项目名称:opensim,代码行数:48,代码来源:RegionState.cs


示例9: SetModuleInterfaces

 /// <summary>
 /// Sets up references to modules required by the scene
 /// </summary>
 public void SetModuleInterfaces()
 {
     m_xmlrpcModule = RequestModuleInterface<IXMLRPC>();
     m_worldCommModule = RequestModuleInterface<IWorldComm>();
     XferManager = RequestModuleInterface<IXfer>();
     m_AvatarFactory = RequestModuleInterface<IAvatarFactoryModule>();
     AttachmentsModule = RequestModuleInterface<IAttachmentsModule>();
     m_serialiser = RequestModuleInterface<IRegionSerialiserModule>();
     m_dialogModule = RequestModuleInterface<IDialogModule>();
     m_capsModule = RequestModuleInterface<ICapabilitiesModule>();
     EntityTransferModule = RequestModuleInterface<IEntityTransferModule>();
     m_groupsModule = RequestModuleInterface<IGroupsModule>();
     AgentTransactionsModule = RequestModuleInterface<IAgentAssetTransactions>();
     UserManagementModule = RequestModuleInterface<IUserManagement>();
 }
开发者ID:CCIR,项目名称:opensim,代码行数:18,代码来源:Scene.cs


示例10: SetModuleInterfaces

 /// <summary>
 /// Sets up references to modules required by the scene
 /// </summary>
 public void SetModuleInterfaces()
 {
     m_xmlrpcModule = RequestModuleInterface<IXMLRPC>();
     m_worldCommModule = RequestModuleInterface<IWorldComm>();
     XferManager = RequestModuleInterface<IXfer>();
     m_AvatarFactory = RequestModuleInterface<IAvatarFactory>();
     AttachmentsModule = RequestModuleInterface<IAttachmentsModule>();
     m_serialiser = RequestModuleInterface<IRegionSerialiserModule>();
     m_dialogModule = RequestModuleInterface<IDialogModule>();
     m_capsModule = RequestModuleInterface<ICapabilitiesModule>();
     m_teleportModule = RequestModuleInterface<IEntityTransferModule>();
 }
开发者ID:NovaGrid,项目名称:opensim,代码行数:15,代码来源:Scene.cs


示例11: AddRegion

 public void AddRegion(Scene scene)
 {
     if (m_enabled)
     {
         m_scene = scene;
         m_dialogmod = scene.RequestModuleInterface<IDialogModule>();
         m_scene.EventManager.OnMakeRootAgent += OnVisit;
     }
 }
开发者ID:aduffy70,项目名称:opensim-experimental,代码行数:9,代码来源:VisitLoggerModule.cs


示例12: AddRegion

 public void AddRegion(Scene scene)
 {
     if (m_enabled)
     {
         m_scene = scene;
         m_dialogmod = m_scene.RequestModuleInterface<IDialogModule>();
         m_scene.EventManager.OnChatFromWorld += new EventManager.ChatFromWorldEvent(OnChat);
         m_scene.EventManager.OnChatFromClient += new EventManager.ChatFromClientEvent(OnChat);
     }
 }
开发者ID:aduffy70,项目名称:VPGsim-modules,代码行数:10,代码来源:vpgTerrainModule.cs


示例13: AddRegion

 public void AddRegion(Scene scene)
 {
     if (m_enabled)
     {
         m_scene = scene;
         m_dialogmod = scene.RequestModuleInterface<IDialogModule>();
         m_scene.EventManager.OnChatFromWorld += new EventManager.ChatFromWorldEvent(OnChat);
         m_scene.EventManager.OnChatFromClient += new EventManager.ChatFromClientEvent(OnChat);
         m_timer.Elapsed += new ElapsedEventHandler(OnTimer);
         m_timer.Interval = m_cycleTime;
     }
 }
开发者ID:aduffy70,项目名称:opensim-experimental,代码行数:12,代码来源:ConwayGOLModule.cs


示例14: AddRegion

 public void AddRegion(Scene scene)
 {
     if (m_enabled)
     {
         m_scene = scene;
         m_dialogmod = m_scene.RequestModuleInterface<IDialogModule>();
         m_pauseTimer.Elapsed += new ElapsedEventHandler(OnPauseTimer);
         m_pauseTimer.Interval = 30000;
         m_prims = new SceneObjectGroup[m_xCells, m_yCells];
         RandomizeStartMatrix();
         m_pauseTimer.Start(); //Don't allow users to setup or use module til all objects have time to load from datastore
     }
 }
开发者ID:aduffy70,项目名称:opensim-experimental,代码行数:13,代码来源:vMeadowModule.cs


示例15: PostInitialise

 public void PostInitialise()
 {
     if (m_enabled)
     {
         m_dialogmod = m_scene.RequestModuleInterface<IDialogModule>();
         m_scene.EventManager.OnChatFromWorld += new EventManager.ChatFromWorldEvent(OnChat);
         m_scene.EventManager.OnChatFromClient += new EventManager.ChatFromClientEvent(OnChat);
         //Start the timer
         m_timer.Elapsed += new ElapsedEventHandler(OnTimer);
         m_timer.Interval = m_cycleTime;
     }
 }
开发者ID:aduffy70,项目名称:opensim-experimental,代码行数:12,代码来源:CellularAutomataModule.cs


示例16: RegionLoaded

 public void RegionLoaded(Scene scene)
 {
     if (m_enabled == false)
         return;
     m_dialogModule = scene.RequestModuleInterface<IDialogModule>();
 }
开发者ID:ssm2017,项目名称:IrcBridgeAlert,代码行数:6,代码来源:IrcBridgeAlertModule.cs


示例17: SetModuleInterfaces

 /// <summary>
 /// Sets up references to modules required by the scene
 /// </summary>
 public void SetModuleInterfaces()
 {
     m_xmlrpcModule = RequestModuleInterface<IXMLRPC>();
     m_worldCommModule = RequestModuleInterface<IWorldComm>();
     XferManager = RequestModuleInterface<IXfer>();
     m_AvatarFactory = RequestModuleInterface<IAvatarFactory>();
     m_serialiser = RequestModuleInterface<IRegionSerialiserModule>();
     m_interregionCommsOut = RequestModuleInterface<IInterregionCommsOut>();
     m_interregionCommsIn = RequestModuleInterface<IInterregionCommsIn>();
     m_dialogModule = RequestModuleInterface<IDialogModule>();
     m_capsModule = RequestModuleInterface<ICapabilitiesModule>();
     m_teleportModule = RequestModuleInterface<ITeleportModule>();
 }
开发者ID:Ideia-Boa,项目名称:opensim,代码行数:16,代码来源:Scene.cs


示例18: PostInitialise

 public void PostInitialise()
 {
     if (m_enabled)
     {
         //Register for modSendCommand events from inworld scripts
         //If we try to do this as part of Initialise() we get an UnhandledEventException.
         m_scriptmod = m_scene.RequestModuleInterface<IScriptModuleComms>();
         m_scriptmod.OnScriptCommand += new ScriptCommand(OnModSendCommand);
         //Register for chat commands so we can receive orders to generate new plants
         m_scene.EventManager.OnChatFromClient += OnChat;
         m_scene.EventManager.OnChatFromWorld += OnChat;
         //Register for IDialogModule so we can send notices
         m_dialogmod = m_scene.RequestModuleInterface<IDialogModule>();
         m_log.Info("[vpgManager] Post-initialized... ");
     }
 }
开发者ID:aduffy70,项目名称:VPGsim-modules,代码行数:16,代码来源:vpgManagerModule.cs


示例19: Initialise

 public void Initialise(Scene scene, IConfigSource source)
 {
     m_scene = scene;
     m_dialogModule = m_scene.RequestModuleInterface<IDialogModule>();
     m_scene.RegisterModuleInterface<IGodsModule>(this);           
 }
开发者ID:ChrisD,项目名称:opensim,代码行数:6,代码来源:GodsModule.cs


示例20: Initialise

 public void Initialise(Scene scene, IConfigSource config)
 {
     IConfig sierpinskiTreeConfig = config.Configs["SierpinskiTree"];
     if (sierpinskiTreeConfig != null)
     {
         m_enabled = sierpinskiTreeConfig.GetBoolean("enabled", false);
         m_channel = sierpinskiTreeConfig.GetInt("chat_channel", 11);
         float xPos = sierpinskiTreeConfig.GetFloat("tree_x_position", 128);
         float yPos = sierpinskiTreeConfig.GetFloat("tree_y_position", 128);
         float zPos = sierpinskiTreeConfig.GetFloat("tree_z_position", 50);
         m_pos = new Vector3(xPos, yPos, zPos);
         m_xSize = sierpinskiTreeConfig.GetFloat("tree_x_size", 30);
         m_ySize = sierpinskiTreeConfig.GetFloat("tree_y_size", 30);
         m_zSize = sierpinskiTreeConfig.GetFloat("tree_z_size", 40);
         m_maxSteps = sierpinskiTreeConfig.GetInt("max_steps", 6); //default of 6 will allow a 15k prim pyramid
     }
     if (m_enabled)
     {
         m_log.Info("[SierpinskiTreeModule] Initializing...");
         m_dialogmod = scene.RequestModuleInterface<IDialogModule>();
         m_scene = scene;
     }
 }
开发者ID:aduffy70,项目名称:opensim-experimental,代码行数:23,代码来源:SierpinskiModule.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IDialogService类代码示例发布时间:2022-05-24
下一篇:
C# IDiagramPresenter类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap