public bool CanIssueEstateCommand(UUID user, bool ownerCommand)
        {
            IssueEstateCommandHandler handler = OnIssueEstateCommand;

            if (handler != null)
            {
                Delegate[] list = handler.GetInvocationList();
                return(list.Cast <IssueEstateCommandHandler>().All(h => h(user, m_scene, ownerCommand) != false));
            }
            return(true);
        }
Beispiel #2
0
        public bool CanIssueEstateCommand(UUID user, bool ownerCommand)
        {
            IssueEstateCommandHandler handler = OnIssueEstateCommand;

            if (handler != null)
            {
                Delegate[] list = handler.GetInvocationList();
                foreach (IssueEstateCommandHandler h in list)
                {
                    if (h(user, m_scene, ownerCommand) == false)
                    {
                        return(false);
                    }
                }
            }
            return(true);
        }