public bool CanViewNotecard(UUID script, UUID objectID, UUID user)
        {
            ViewNotecardHandler handler = OnViewNotecard;

            if (handler != null)
            {
                Delegate[] list = handler.GetInvocationList();
                return(list.Cast <ViewNotecardHandler>().All(h => h(script, objectID, user, m_scene) != false));
            }
            return(true);
        }
Esempio n. 2
0
        public bool CanViewNotecard(UUID script, UUID objectID, UUID user)
        {
            ViewNotecardHandler handler = OnViewNotecard;

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