Esempio n. 1
0
 protected internal override void Read(OnlineReader Sender)
 {
     RoomName          = Sender.ReadString();
     RoomType          = Sender.ReadString();
     RoomSubtype       = Sender.ReadString();
     MinNumberOfPlayer = Sender.ReadByte();
     MaxNumberOfPlayer = Sender.ReadByte();
 }
 protected internal override void Read(OnlineReader Sender)
 {
     GroupID      = Sender.ReadString();
     Date         = Sender.ReadString();
     Message      = Sender.ReadString();
     MessageColor = Sender.ReadByte();
 }
        protected internal override void Read(OnlineReader Sender)
        {
            GroupID = Sender.ReadString();
            int MessageCount = Sender.ReadInt32();

            for (int M = 0; M < MessageCount; ++M)
            {
                string Date         = Sender.ReadString();
                string Message      = Sender.ReadString();
                byte   MessageColor = Sender.ReadByte();

                ListChatHistory.Add(new ChatManager.ChatMessage(DateTime.Parse(Date, DateTimeFormatInfo.InvariantInfo), Message, (ChatManager.MessageColors)MessageColor));
            }
        }