public bool CanSubdivideParcel(UUID user, ILandObject parcel)
        {
            EditParcelHandler handler = OnSubdivideParcel;

            if (handler != null)
            {
                Delegate[] list = handler.GetInvocationList();
                return(list.Cast <EditParcelHandler>().All(h => h(user, parcel, m_scene) != false));
            }
            return(true);
        }
示例#2
0
        public bool CanEditParcel(UUID user, ILandObject parcel, GroupPowers p)
        {
            EditParcelHandler handler = OnEditParcel;

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