protected override void DoWrite(OnlineWriter WriteBuffer)
 {
     WriteBuffer.AppendString(RoomName);
     WriteBuffer.AppendString(RoomType);
     WriteBuffer.AppendString(RoomSubtype);
     WriteBuffer.AppendInt32(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);
 }
示例#3
0
 protected override void DoWrite(OnlineWriter WriteBuffer)
 {
     WriteBuffer.AppendString(ClientID);
     WriteBuffer.AppendString(ClientName);
     WriteBuffer.AppendBoolean(Spectator);
     WriteBuffer.AppendByteArray(ClientInfo);
 }
 protected override void DoWrite(OnlineWriter WriteBuffer)
 {
     WriteBuffer.AppendString(ServerIP);
     WriteBuffer.AppendInt32(ServerPort);
     WriteBuffer.AppendString(CommunicationServerIP);
     WriteBuffer.AppendInt32(CommunicationServerPort);
 }
示例#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);
     }
 }
示例#6
0
        protected override void DoWrite(OnlineWriter WriteBuffer)
        {
            WriteBuffer.AppendInt32(ListRoomUpdates.Count);
            foreach (RoomInformations ActiveRoom in ListRoomUpdates)
            {
                WriteBuffer.AppendString(ActiveRoom.RoomID);
                WriteBuffer.AppendBoolean(ActiveRoom.IsDead);

                if (!ActiveRoom.IsDead)
                {
                    WriteBuffer.AppendString(ActiveRoom.RoomName);
                    WriteBuffer.AppendInt32(ActiveRoom.MaxNumberOfPlayer);
                    WriteBuffer.AppendInt32(ActiveRoom.CurrentPlayerCount);
                }
            }
        }
        protected override void DoWrite(OnlineWriter WriteBuffer)
        {
            byte[] ArrayGameData = Owner.CurrentGame.GetSnapshotData();

            WriteBuffer.AppendString(Owner.RoomID);
            WriteBuffer.AppendByteArray(ArrayGameData);
        }
示例#8
0
 protected override void DoWrite(OnlineWriter WriteBuffer)
 {
     WriteBuffer.AppendInt32(ListOtherMaster.Count);
     for (int M = 0; M < ListOtherMaster.Count; ++M)
     {
         WriteBuffer.AppendString(ListOtherMaster[M].IP);
     }
 }
示例#9
0
 protected override void DoWrite(OnlineWriter WriteBuffer)
 {
     WriteBuffer.AppendInt32(ListPlayerInfo.Count);
     foreach (KeyValuePair <string, byte[]> ActivePlayerInfo in ListPlayerInfo)
     {
         WriteBuffer.AppendString(ActivePlayerInfo.Key);
         WriteBuffer.AppendByteArray(ActivePlayerInfo.Value);
     }
 }
 protected override void DoWrite(OnlineWriter WriteBuffer)
 {
     WriteBuffer.AppendInt32(ListFriend.Count);
     foreach (PlayerPOCO ActivePlayerInfo in ListFriend)
     {
         WriteBuffer.AppendString(ActivePlayerInfo.ID);
         WriteBuffer.AppendByteArray(ActivePlayerInfo.Info);
     }
 }
示例#11
0
 protected override void DoWrite(OnlineWriter WriteBuffer)
 {
     WriteBuffer.AppendString(RoomID);
     WriteBuffer.AppendBoolean(RoomToJoin != null);
     if (RoomToJoin != null)
     {
         WriteBuffer.AppendInt32(RoomToJoin.CurrentPlayerCount);
         WriteBuffer.AppendInt32(RoomToJoin.MaxNumberOfPlayer);
     }
 }
 protected override void DoWrite(OnlineWriter WriteBuffer)
 {
     WriteBuffer.AppendString(GroupID);
     WriteBuffer.AppendString(GroupName);
     WriteBuffer.AppendString(ClientID);
     WriteBuffer.AppendString(ClientName);
     WriteBuffer.AppendString(ClientToInviteID);
     WriteBuffer.AppendString(CommunicationServerIP);
     WriteBuffer.AppendInt32(CommunicationServerPort);
 }
示例#13
0
 protected override void DoWrite(OnlineWriter WriteBuffer)
 {
     WriteBuffer.AppendString(PlayerID);
     WriteBuffer.AppendInt32(Team);
 }
示例#14
0
 protected override void DoWrite(OnlineWriter WriteBuffer)
 {
     WriteBuffer.AppendString(RoomPlayerID);
     WriteBuffer.AppendUInt32(InGamePlayerID);
 }
 protected override void DoWrite(OnlineWriter WriteBuffer)
 {
     WriteBuffer.AppendString(RoomName);
 }
 protected override void DoWrite(OnlineWriter WriteBuffer)
 {
     WriteBuffer.AppendString(GroupID);
 }
 protected override void DoWrite(OnlineWriter WriteBuffer)
 {
     WriteBuffer.AppendString(GroupID);
     WriteBuffer.AppendBoolean(SaveLogs);
 }
示例#18
0
 protected override void DoWrite(OnlineWriter WriteBuffer)
 {
     WriteBuffer.AppendString(RoomID);
     WriteBuffer.AppendString(RemoteIP);
     WriteBuffer.AppendInt32(RemotePort);
 }
示例#19
0
 protected override void DoWrite(OnlineWriter WriteBuffer)
 {
     WriteBuffer.AppendString(PlayerInfo.ID);
     WriteBuffer.AppendString(PlayerInfo.Name);
 }
 protected override void DoWrite(OnlineWriter WriteBuffer)
 {
     WriteBuffer.AppendString(Login);
     WriteBuffer.AppendString(Password);
 }
示例#21
0
 protected override void DoWrite(OnlineWriter WriteBuffer)
 {
     WriteBuffer.AppendString(NewServerManagerIP);
 }
 protected override void DoWrite(OnlineWriter WriteBuffer)
 {
     WriteBuffer.AppendString(CharacterType);
 }
示例#23
0
 protected override void DoWrite(OnlineWriter WriteBuffer)
 {
     WriteBuffer.AppendString(CurrentDifficulty);
     WriteBuffer.AppendString(MissionPath);
 }
示例#24
0
 internal void Write(OnlineWriter WriteBuffer)
 {
     WriteBuffer.AppendString(Name);
     DoWrite(WriteBuffer);
 }
示例#25
0
 protected override void DoWrite(OnlineWriter WriteBuffer)
 {
     WriteBuffer.AppendString(CurrentDifficulty);
     WriteBuffer.AppendString(NewMapName);
 }
示例#26
0
 protected override void DoWrite(OnlineWriter WriteBuffer)
 {
     WriteBuffer.AppendString(GroupID);
     WriteBuffer.AppendString(GroupName);
     WriteBuffer.AppendString(ClientToInviteID);
 }