public bool CanInteractWithPrimMedia(UUID userID, UUID primID, int face) { InteractWithPrimMediaHandler handler = OnInteractWithPrimMedia; if (handler != null) { Delegate[] list = handler.GetInvocationList(); return(list.Cast <InteractWithPrimMediaHandler>().All(h => h(userID, primID, face) != false)); } return(true); }
public bool CanInteractWithPrimMedia(UUID userID, UUID primID, int face) { InteractWithPrimMediaHandler handler = OnInteractWithPrimMedia; if (handler != null) { Delegate[] list = handler.GetInvocationList(); foreach (InteractWithPrimMediaHandler h in list) { if (h(userID, primID, face) == false) { return(false); } } } return(true); }