public bool CanResetScript(UUID prim, UUID script, UUID user)
        {
            ResetScriptHandler handler = OnResetScript;

            if (handler != null)
            {
                Delegate[] list = handler.GetInvocationList();
                return(list.Cast <ResetScriptHandler>().All(h => h(prim, script, user, m_scene) != false));
            }
            return(true);
        }
Example #2
0
        public bool CanResetScript(UUID prim, UUID script, UUID user)
        {
            ResetScriptHandler handler = OnResetScript;

            if (handler != null)
            {
                Delegate[] list = handler.GetInvocationList();
                foreach (ResetScriptHandler h in list)
                {
                    if (h(prim, script, user, m_scene) == false)
                    {
                        return(false);
                    }
                }
            }
            return(true);
        }