Exemple #1
0
        public void RegionLoaded(Scene scene)
        {
            IChatModule chatmodule = scene.RequestModuleInterface <IChatModule>();

            if (chatmodule != null)
            {
                //Set default chat ranges
                m_settings.WhisperDistance = chatmodule.WhisperDistance;
                m_settings.SayDistance     = chatmodule.SayDistance;
                m_settings.ShoutDistance   = chatmodule.ShoutDistance;
            }
            IScriptModule scriptmodule = scene.RequestModuleInterface <IScriptModule>();

            if (scriptmodule != null)
            {
                List <string> FunctionNames = scriptmodule.GetAllFunctionNames();
                foreach (string FunctionName in FunctionNames)
                {
                    m_settings.LSLCommands.Add(OSD.FromString(FunctionName));
                }
            }
        }