public bool CanDeleteObjectInventory(UUID itemID, UUID objectID, UUID userID)
        {
            DeleteObjectInventoryHandler handler = OnDeleteObjectInventory;

            if (handler != null)
            {
                Delegate[] list = handler.GetInvocationList();
                return(list.Cast <DeleteObjectInventoryHandler>().All(h => h(itemID, objectID, userID) != false));
            }
            return(true);
        }
Пример #2
0
        public bool CanDeleteObjectInventory(UUID itemID, UUID objectID, UUID userID)
        {
            DeleteObjectInventoryHandler handler = OnDeleteObjectInventory;

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