/// <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);
        }
Exemple #2
0
        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);
        }