public bool CanCompileScript(UUID ownerUUID, string scriptType)
        {
            CompileScriptHandler handler = OnCompileScript;

            if (handler != null)
            {
                Delegate[] list = handler.GetInvocationList();
                return(list.Cast <CompileScriptHandler>().All(h => h(ownerUUID, scriptType, m_scene) != false));
            }
            return(true);
        }
Example #2
0
        public bool CanCompileScript(UUID ownerUUID, int scriptType)
        {
            CompileScriptHandler handler = OnCompileScript;

            if (handler != null)
            {
                Delegate[] list = handler.GetInvocationList();
                foreach (CompileScriptHandler h in list)
                {
                    if (h(ownerUUID, scriptType, m_scene) == false)
                    {
                        return(false);
                    }
                }
            }
            return(true);
        }