public bool CanEditParcelAccessList(UUID uUID, ILandObject land, uint flags)
        {
            EditParcelAccessListHandler handler = OnEditParcelAccessList;

            if (handler != null)
            {
                Delegate[] list = handler.GetInvocationList();
                return(list.Cast <EditParcelAccessListHandler>().All(h => h(uUID, land, flags) != false));
            }
            return(true);
        }
Beispiel #2
0
        public bool CanEditParcelAccessList(UUID uUID, ILandObject land, uint flags)
        {
            EditParcelAccessListHandler handler = OnEditParcelAccessList;

            if (handler != null)
            {
                Delegate[] list = handler.GetInvocationList();
                foreach (EditParcelAccessListHandler h in list)
                {
                    if (h(uUID, land, flags) == false)
                    {
                        return(false);
                    }
                }
            }
            return(true);
        }