Exemplo n.º 1
0
        private bool DeserializeAsClient(BinaryReader reader, int senderPlayerId)
        {
            byte messageAuthor = reader.ReadByte();

            ChatHelper.DisplayMessage(NetworkText.Deserialize(reader), reader.ReadRGB(), messageAuthor);
            return(true);
        }
Exemplo n.º 2
0
        private bool DeserializeAsClient(BinaryReader reader, int senderPlayerId)
        {
            byte   num = reader.ReadByte();
            string str = NetworkText.Deserialize(reader).ToString();
            Color  c   = reader.ReadRGB();

            if ((int)num < (int)byte.MaxValue)
            {
                Main.player[(int)num].chatOverhead.NewMessage(str, Main.chatLength / 2);
                str = NameTagHandler.GenerateTag(Main.player[(int)num].name) + " " + str;
            }
            Main.NewTextMultiline(str, false, c, -1);
            return(true);
        }
        // Token: 0x06002556 RID: 9558 RVA: 0x0048064C File Offset: 0x0047E84C
        private bool DeserializeAsClient(BinaryReader reader, int senderPlayerId)
        {
            var b    = reader.ReadByte();
            var text = NetworkText.Deserialize(reader).ToString();
            var c    = reader.ReadRGB();

            if (b < 255)
            {
                Main.player[(int)b].chatOverhead.NewMessage(text, Main.chatLength / 2);
                text = NameTagHandler.GenerateTag(Main.player[(int)b].name) + " " + text;
            }
            Main.NewTextMultiline(text, false, c, -1);
            return(true);
        }