public bool CanAbandonParcel(UUID user, ILandObject parcel) { AbandonParcelHandler handler = OnAbandonParcel; if (handler != null) { Delegate[] list = handler.GetInvocationList(); return(list.Cast <AbandonParcelHandler>().All(h => h(user, parcel, m_scene) != false)); } return(true); }
public bool CanAbandonParcel(UUID user, ILandObject parcel) { AbandonParcelHandler handler = OnAbandonParcel; if (handler != null) { Delegate[] list = handler.GetInvocationList(); foreach (AbandonParcelHandler h in list) { if (h(user, parcel, m_scene) == false) { return(false); } } } return(true); }