Esempio n. 1
0
 private static void HandleBroadcastChat(NetworkMessage netMsg)
 {
     Chat.ChatMessageBase chatMessageBase = Chat.ChatMessageBase.Instantiate(netMsg.reader.ReadByte());
     if (chatMessageBase != null)
     {
         chatMessageBase.Deserialize(netMsg.reader);
         Chat.AddMessage(chatMessageBase);
     }
 }
Esempio n. 2
0
        // Token: 0x06000A5C RID: 2652 RVA: 0x00033D38 File Offset: 0x00031F38
        private static void AddMessage(Chat.ChatMessageBase message)
        {
            string text = message.ConstructChatString();

            if (text != null)
            {
                Chat.AddMessage(text);
                message.OnProcessed();
            }
        }
Esempio n. 3
0
        // Token: 0x06000A57 RID: 2647 RVA: 0x00033C0C File Offset: 0x00031E0C
        public static void SendBroadcastChat(Chat.ChatMessageBase message, int channelIndex)
        {
            NetworkWriter networkWriter = new NetworkWriter();

            networkWriter.StartMessage(59);
            networkWriter.Write(message.GetTypeIndex());
            networkWriter.Write(message);
            networkWriter.FinishMessage();
            foreach (NetworkConnection networkConnection in NetworkServer.connections)
            {
                if (networkConnection != null)
                {
                    networkConnection.SendWriter(networkWriter, channelIndex);
                }
            }
        }
Esempio n. 4
0
 // Token: 0x06000A56 RID: 2646 RVA: 0x00033BF9 File Offset: 0x00031DF9
 public static void SendBroadcastChat(Chat.ChatMessageBase message)
 {
     Chat.SendBroadcastChat(message, QosChannelIndex.chat.intVal);
 }