Aurora.Voice.Whisper.MurmurVoiceModule.AddRegion C# (CSharp) Method

AddRegion() public method

public AddRegion ( IScene scene ) : void
scene IScene
return void
        public void AddRegion(IScene scene)
        {
            if (m_enabled)
            {
                Initialize(scene);
                scene.EventManager.OnNewClient += OnNewClient;
                scene.EventManager.OnClosingClient += OnClosingClient;
            #if (!ISWIN)
                scene.EventManager.OnRegisterCaps += delegate(UUID agentID, IHttpServer server)
                {
                    return OnRegisterCaps(scene, agentID, server);
                };
            #else
                scene.EventManager.OnRegisterCaps += (agentID, server) => OnRegisterCaps(scene, agentID, server);
            #endif
                //Add this to the OpenRegionSettings module so we can inform the client about it
                IOpenRegionSettingsModule ORSM = scene.RequestModuleInterface<IOpenRegionSettingsModule>();
                if (ORSM != null)
                    ORSM.RegisterGenericValue("Voice", "Mumble");
            }
        }