public bool CanReclaimParcel(UUID user, ILandObject parcel)
        {
            ReclaimParcelHandler handler = OnReclaimParcel;

            if (handler != null)
            {
                Delegate[] list = handler.GetInvocationList();
                return(list.Cast <ReclaimParcelHandler>().All(h => h(user, parcel, m_scene) != false));
            }
            return(true);
        }
Exemple #2
0
        public bool CanReclaimParcel(UUID user, ILandObject parcel)
        {
            ReclaimParcelHandler handler = OnReclaimParcel;

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