protected override void DoWrite(OnlineWriter WriteBuffer)
 {
     WriteBuffer.AppendString(RoomName);
     WriteBuffer.AppendString(RoomType);
     WriteBuffer.AppendString(RoomSubtype);
     WriteBuffer.AppendByte(MinNumberOfPlayer);
     WriteBuffer.AppendByte(MaxNumberOfPlayer);
 }
Exemple #2
0
 protected override void DoWrite(OnlineWriter WriteBuffer)
 {
     WriteBuffer.AppendString(RoomID);
     WriteBuffer.AppendBoolean(RoomToJoin != null);
     if (RoomToJoin != null)
     {
         WriteBuffer.AppendByte(RoomToJoin.CurrentPlayerCount);
         WriteBuffer.AppendByte(RoomToJoin.MinNumberOfPlayer);
         WriteBuffer.AppendByte(RoomToJoin.MaxNumberOfPlayer);
     }
 }
 protected override void DoWrite(OnlineWriter WriteBuffer)
 {
     WriteBuffer.AppendString(GroupID);
     WriteBuffer.AppendString(MessageToSend.Date.ToString(DateTimeFormatInfo.InvariantInfo));
     WriteBuffer.AppendString(MessageToSend.Message);
     WriteBuffer.AppendByte((byte)MessageToSend.MessageColor);
 }
        protected override void DoWrite(OnlineWriter WriteBuffer)
        {
            WriteBuffer.AppendInt32(ListRoomUpdates.Count);
            foreach (IRoomInformations ActiveRoom in ListRoomUpdates)
            {
                WriteBuffer.AppendString(ActiveRoom.RoomID);
                WriteBuffer.AppendBoolean(ActiveRoom.IsDead);

                if (!ActiveRoom.IsDead)
                {
                    WriteBuffer.AppendString(ActiveRoom.RoomName);
                    WriteBuffer.AppendString(ActiveRoom.RoomType);
                    WriteBuffer.AppendString(ActiveRoom.RoomSubtype);
                    WriteBuffer.AppendBoolean(ActiveRoom.IsPlaying);
                    WriteBuffer.AppendByte(ActiveRoom.MinNumberOfPlayer);
                    WriteBuffer.AppendByte(ActiveRoom.MaxNumberOfPlayer);
                    WriteBuffer.AppendByte(ActiveRoom.CurrentPlayerCount);
                }
            }
        }
Exemple #5
0
 protected override void DoWrite(OnlineWriter WriteBuffer)
 {
     WriteBuffer.AppendString(GroupID);
     WriteBuffer.AppendInt32(ListChatHistory.Count);
     foreach (ChatManager.ChatMessage ActiveMessage in ListChatHistory)
     {
         WriteBuffer.AppendString(ActiveMessage.Date.ToString(DateTimeFormatInfo.InvariantInfo));
         WriteBuffer.AppendString(ActiveMessage.Message);
         WriteBuffer.AppendByte((byte)ActiveMessage.MessageColor);
     }
 }