public void PartPhysicsProperties(uint localID, byte physhapetype,
                                          float density, float friction, float bounce, float gravmod, UUID avatarID)
        {
            OSD item = EventQueueHelper.PartPhysicsProperties(localID, physhapetype,
                                                              density, friction, bounce, gravmod);

            Enqueue(item, avatarID);
        }
        public virtual bool CrossRegion(ulong handle, Vector3 pos, Vector3 lookAt,
                                        IPEndPoint newRegionExternalEndPoint,
                                        string capsURL, UUID avatarID, UUID sessionID)
        {
            OSD item = EventQueueHelper.CrossRegion(handle, pos, lookAt, newRegionExternalEndPoint,
                                                    capsURL, avatarID, sessionID);

            return(EnqueueWithPriority(item, avatarID, true));
        }
        public void ChatterBoxSessionAgentListUpdates(UUID sessionID, UUID fromAgent, UUID toAgent, bool canVoiceChat,
                                                      bool isModerator, bool textMute, byte dialog)
        {
            OSD item = EventQueueHelper.ChatterBoxSessionAgentListUpdates(sessionID, fromAgent, canVoiceChat,
                                                                          isModerator, textMute, dialog);

            Enqueue(item, toAgent);
            //m_log.InfoFormat("########### eq ChatterBoxSessionAgentListUpdates #############\n{0}", item);
        }
        public void SendConsoleOutput(UUID agentID, string message)
        {
            OSD         osd = OSD.FromString(message);
            IEventQueue eq  = m_scene.RequestModuleInterface <IEventQueue>();

            if (eq != null)
            {
                eq.Enqueue(EventQueueHelper.BuildEvent("SimConsoleResponse", osd), agentID);
            }
        }
        public virtual bool TeleportFinishEvent(ulong regionHandle, byte simAccess,
                                                IPEndPoint regionExternalEndPoint,
                                                uint locationID, uint flags, string capsURL,
                                                UUID avatarID)
        {
            OSD item = EventQueueHelper.TeleportFinishEvent(regionHandle, simAccess, regionExternalEndPoint,
                                                            locationID, flags, capsURL, avatarID);

            return(EnqueueWithPriority(item, avatarID, true));
        }
        public void ChatterboxInvitation(UUID sessionID, string sessionName,
                                         UUID fromAgent, string message, UUID toAgent, string fromName, byte dialog,
                                         uint timeStamp, bool offline, int parentEstateID, Vector3 position,
                                         uint ttl, UUID transactionID, bool fromGroup, byte[] binaryBucket)
        {
            OSD item = EventQueueHelper.ChatterboxInvitation(sessionID, sessionName, fromAgent, message, toAgent, fromName, dialog,
                                                             timeStamp, offline, parentEstateID, position, ttl, transactionID,
                                                             fromGroup, binaryBucket);

            Enqueue(item, toAgent);
            //m_log.InfoFormat("########### eq ChatterboxInvitation #############\n{0}", item);
        }
 public OSD BuildEvent(string eventName, OSD eventBody)
 {
     return(EventQueueHelper.BuildEvent(eventName, eventBody));
 }
        public void QueryReply(PlacesReplyPacket groupUpdate, UUID avatarID)
        {
            OSD item = EventQueueHelper.PlacesQuery(groupUpdate);

            Enqueue(item, avatarID);
        }
        public void ScriptRunning(UUID objectID, UUID itemID, bool running, bool mono, UUID avatarID)
        {
            OSD item = EventQueueHelper.ScriptRunningReplyEvent(objectID, itemID, running, mono);

            Enqueue(item, avatarID);
        }
        public void GroupMembership(AgentGroupDataUpdatePacket groupUpdate, UUID avatarID)
        {
            OSD item = EventQueueHelper.GroupMembership(groupUpdate);

            Enqueue(item, avatarID);
        }
        public void ParcelProperties(ParcelPropertiesMessage parcelPropertiesMessage, UUID avatarID)
        {
            OSD item = EventQueueHelper.ParcelProperties(parcelPropertiesMessage);

            Enqueue(item, avatarID);
        }
        public virtual bool EstablishAgentCommunication(UUID avatarID, IPEndPoint endPoint, string capsPath)
        {
            OSD item = EventQueueHelper.EstablishAgentCommunication(avatarID, endPoint.ToString(), capsPath);

            return(EnqueueWithPriority(item, avatarID, true));
        }
        public virtual bool EnableSimulator(ulong handle, IPEndPoint endPoint, UUID avatarID)
        {
            OSD item = EventQueueHelper.EnableSimulator(handle, endPoint);

            return(EnqueueWithPriority(item, avatarID, true));
        }
        public void DisableSimulator(ulong handle, UUID avatarID)
        {
            OSD item = EventQueueHelper.DisableSimulator(handle);

            Enqueue(item, avatarID);
        }