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(RoomID); WriteBuffer.AppendBoolean(RoomToJoin != null); if (RoomToJoin != null) { WriteBuffer.AppendInt32(RoomToJoin.CurrentPlayerCount); WriteBuffer.AppendInt32(RoomToJoin.MaxNumberOfPlayer); } }
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.AppendInt32(ActiveRoom.MaxNumberOfPlayer); WriteBuffer.AppendInt32(ActiveRoom.CurrentPlayerCount); } } }
protected override void DoWrite(OnlineWriter WriteBuffer) { WriteBuffer.AppendString(GroupID); WriteBuffer.AppendBoolean(SaveLogs); }