Ejemplo n.º 1
0
 public void ChatSendHandler()
 {
     Thread.CurrentThread.Name = "Chat:Routing Thread for " + Scene.ID.ToString();
     while (true)
     {
         var ev = m_ChatQueue.Dequeue();
         if (ev is ShutdownEvent)
         {
             break;
         }
         else if (ev is ListenEvent)
         {
             m_ChatService?.Send((ListenEvent)ev);
         }
     }
 }
        public void DoSayTo(UUID target, int channel, string text)
        {
            ChatServiceInterface chatService = CurrentScene.GetService <ChatServiceInterface>();

            chatService.Send(new ListenEvent
            {
                ID             = ID,
                Type           = ListenEvent.ChatType.Say,
                Channel        = channel,
                GlobalPosition = GlobalPosition,
                Name           = Name,
                Message        = text,
                TargetID       = target,
                SourceType     = ListenEvent.ChatSourceType.Agent,
                OwnerID        = ID
            });
        }
Ejemplo n.º 3
0
        protected override void SendChatPass(ListenEvent le)
        {
            ChatServiceInterface chatService = m_ChatService;

            chatService?.Send(le);
        }