Example #1
0
      public RelayChat(string message, int chatWindow)
         : base("RelayChat", false, 0)
      {
         Message = new Message(message);
         ChatWindow = new ChatWindow(chatWindow);

         m_objectList.Add(Message);
         m_objectList.Add(ChatWindow);
      }
Example #2
0
 protected override void ProcessObjectList()
 {
    foreach (HotlineObject obj in m_objectList)
    {
       if (obj.GetType() == typeof(Message))
          Message = obj as Message;
       else if (obj.GetType() == typeof(ChatWindow))
          ChatWindow = obj as ChatWindow;
       else
          s_log.ErrorFormat("Unexpected object: {0}", obj.GetType().ToString());
    }
 }
Example #3
0
      public SendChat(string message, int? chatWindow, bool emote)
         : base("SendChat", false, 0)
      {
         // Message -- the text to be sent.
         Message = new Message(message);
         m_objectList.Add(Message);
         
         // Emote flag -- if the text is an emote.
         if (emote)
            Parameter = new Parameter(1);
         else
            Parameter = new Parameter(0);
         m_objectList.Add(Parameter);

         // Optional chat window number.
         if (chatWindow != null)
         {
            ChatWindow = new ChatWindow(chatWindow.Value);
            m_objectList.Add(ChatWindow);
         }
      }