/// <summary> /// Checks whether the user is in god mode /// </summary> /// <param name="user"></param> /// <returns></returns> public bool IsGod(UUID user) { IsGodHandler handler = OnIsGod; if (handler != null) { Delegate[] list = handler.GetInvocationList(); return(list.Cast <IsGodHandler>().All(h => h(user, m_scene) != false)); } return(true); }
public bool IsGod(UUID user) { IsGodHandler handler = OnIsGod; if (handler != null) { Delegate[] list = handler.GetInvocationList(); foreach (IsGodHandler h in list) { if (h(user, m_scene) == false) { return(false); } } } return(true); }