public bool CanInteractWithPrimMedia(UUID userID, UUID primID, int face)
        {
            InteractWithPrimMediaHandler handler = OnInteractWithPrimMedia;

            if (handler != null)
            {
                Delegate[] list = handler.GetInvocationList();
                return(list.Cast <InteractWithPrimMediaHandler>().All(h => h(userID, primID, face) != false));
            }
            return(true);
        }
Exemplo n.º 2
0
        public bool CanInteractWithPrimMedia(UUID userID, UUID primID, int face)
        {
            InteractWithPrimMediaHandler handler = OnInteractWithPrimMedia;

            if (handler != null)
            {
                Delegate[] list = handler.GetInvocationList();
                foreach (InteractWithPrimMediaHandler h in list)
                {
                    if (h(userID, primID, face) == false)
                    {
                        return(false);
                    }
                }
            }
            return(true);
        }