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